Android Question java.io.FileNotFoundException: weathericon/wsymbol

pantaraf

Member
Licensed User
Longtime User
I'm getting an exception using the ICOSWorldWeather when I call
Code: Copy
ImageView1.SetBackgroundImage(Meteo.CCIcon)
I always get a file not found exception, no matter what file is involved.
Code: Copy
java.io.FileNotFoundException: weathericon/wsymbol_0004_black_low_cloud.png
Up to this morning, before updating to B4A 3.50, everything worked fine. Do I have to make any action? I've refreshed the files tab and clean project as well. Of course actual files are at their own place into the Files directory.
Is this related to 3.50?

Just for clarity, when I load the very same files in the same app directly the get loaded correctly.

Code: Copy
ImageView1.SetBackgroundImage(LoadBitmap(File.DirAssets,filename))

Thanks.
Raffaele
 
I guess that you only get this error in rapid debug mode. This means that this library loads the assets files directly instead of relying on the internal framework (File.OpenInput).

You will need to disable the new virtual assets folder feature. This is done by adding #DebuggerForceStandardAssets: true in the main activity.
 
Upvote 0
Back
Top