Android Question Problems with Migration from 5.20 to 9.80

mevial

Member
Licensed User
Longtime User
After upgrading b4a to 9.80 I have bug with image.
App compiled normal, but for install the app I need remove older app with all settings. Some critical settings was been lost. :(
But new compiled app crashes with no message after starting in release mode.
In debug mode the app works normally, but I have message in the console:
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 687)
java.io.FileNotFoundException: mnubtn.png
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:423)
at android.content.res.AssetManager.open(AssetManager.java:397)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:207)
at anywheresoftware.b4a.objects.drawable.CanvasWrapper$BitmapWrapper.Initialize(CanvasWrapper.java:516)
at anywheresoftware.b4a.keywords.Common.LoadBitmap(Common.java:1343)
at ru.mevial.ozwizard.main._activity_create(main.java:687)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at ru.mevial.ozwizard.main.afterFirstLayout(main.java:104)
at ru.mevial.ozwizard.main.access$000(main.java:17)
at ru.mevial.ozwizard.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1534)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1424)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
No wakelock.
** Activity (main) Resume **
WakeLock already held.
But file mnubtn.png is exist in the "Files" folder and in the Files tab. And in the debug mode I see the image on the phone screen.
b4a980w.jpg

tcw.jpg

If I've commented string with image loading, the app works normally in the release mode, but without image on the screen.
 

Peter Simpson

Expert
Licensed User
Longtime User
Have you done all the usual steps for updating to 9.80, things like making sure that you are using the B4A SDK Manager, pointing everything to that SDK, Jetifying all your libraries, making sure that all the B4A SDK recommended items are installed etc etc etc???
 
Upvote 0

mevial

Member
Licensed User
Longtime User
No, I upgraded only ide. Which minimal sdk I need to work with new version of ide? I still need support devices with android 2.3.x
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Which minimal sdk I need to work with new version of ide?

The installation instructions and the resources can be found here:
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
No, I upgraded only ide.
You will need to follow the instructions instructions to the letter, and don't forget to Jetify your libraries afterwards.

I still need support devices with android 2.3.x
Is this for a particular device?
Gingerbread really, why so old as that really does not sound right to me.

Screenshot_20200312-065806~2_resize_56.jpg
 
Upvote 0
Top