IndieDev Active Member Licensed User Longtime User May 26, 2023 #1 Hi, Have uploaded a compass app to Playstore. (Link to app) I am getting the following error only on Redmi Note 11 Pro+ 5G phones (2 devices). ? Works fine in other devices tested so far.... On one phone: Code: Exception java.lang.RuntimeException: at anywheresoftware.b4a.keywords.Common$14.run (Common.java:1750) at android.os.Handler.handleCallback (Handler.java:938) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:211) at android.os.Looper.loop (Looper.java:300) at android.app.ActivityThread.main (ActivityThread.java:8301) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1043) Caused by java.lang.RuntimeException: Object should first be initialized (Label). at anywheresoftware.b4a.AbsObjectWrapper.getObject (AbsObjectWrapper.java:67) at anywheresoftware.b4a.objects.TextViewWrapper.setText (TextViewWrapper.java:39) at b4a.compass.main$ResumableSub_Activity_Resume.resume (main.java:811) at anywheresoftware.b4a.keywords.Common$14.run (Common.java:1748) On the other phone: Code: Exception java.io.IOException: at android.location.Geocoder$GeocodeListener.getResults (Geocoder.java:246) at android.location.Geocoder.getFromLocation (Geocoder.java:134) at de.donmanfred.GeoLocatorwrapper.geoAddress (GeoLocatorwrapper.java:119) at b4a.compass.main._geolocation_location (main.java:1235) at java.lang.reflect.Method.invoke at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:221) at anywheresoftware.b4a.BA$2.run (BA.java:395) at android.os.Handler.handleCallback (Handler.java:938) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:211) at android.os.Looper.loop (Looper.java:300) at android.app.ActivityThread.main (ActivityThread.java:8301) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1043) There is no uninitialized label. [Object should first be initialized (Label)] Guess the error is somewhere else.... Kindly help. Thanks. Last edited: May 26, 2023
Hi, Have uploaded a compass app to Playstore. (Link to app) I am getting the following error only on Redmi Note 11 Pro+ 5G phones (2 devices). ? Works fine in other devices tested so far.... On one phone: Code: Exception java.lang.RuntimeException: at anywheresoftware.b4a.keywords.Common$14.run (Common.java:1750) at android.os.Handler.handleCallback (Handler.java:938) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:211) at android.os.Looper.loop (Looper.java:300) at android.app.ActivityThread.main (ActivityThread.java:8301) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1043) Caused by java.lang.RuntimeException: Object should first be initialized (Label). at anywheresoftware.b4a.AbsObjectWrapper.getObject (AbsObjectWrapper.java:67) at anywheresoftware.b4a.objects.TextViewWrapper.setText (TextViewWrapper.java:39) at b4a.compass.main$ResumableSub_Activity_Resume.resume (main.java:811) at anywheresoftware.b4a.keywords.Common$14.run (Common.java:1748) On the other phone: Code: Exception java.io.IOException: at android.location.Geocoder$GeocodeListener.getResults (Geocoder.java:246) at android.location.Geocoder.getFromLocation (Geocoder.java:134) at de.donmanfred.GeoLocatorwrapper.geoAddress (GeoLocatorwrapper.java:119) at b4a.compass.main._geolocation_location (main.java:1235) at java.lang.reflect.Method.invoke at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:221) at anywheresoftware.b4a.BA$2.run (BA.java:395) at android.os.Handler.handleCallback (Handler.java:938) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:211) at android.os.Looper.loop (Looper.java:300) at android.app.ActivityThread.main (ActivityThread.java:8301) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1043) There is no uninitialized label. [Object should first be initialized (Label)] Guess the error is somewhere else.... Kindly help. Thanks.
IndieDev Active Member Licensed User Longtime User May 26, 2023 #2 One has Android 11, the other Android 12. Upvote 0
agraham Expert Licensed User Longtime User May 26, 2023 #3 I get the initialized label error in your app on my Redmi Note Pro with Android 12 and MUI Global 14.0.4 On my Xiaomi Mi Max 3 with android 10 and Mui Global 12.0.1 and on my Pixel 4a with Android 13, it loads but shows an "Accuracy seems low. Please rotate your phone in "8" pattern" dialog that cannot be dismissed and effectivley freezes the app. On my Microsoft Surface Duo with Android 13 12 it seems to install but doesn't appear in the app drawer and won't run from the Playstore installation page which thinks it is installed, and from which I can uninstall it even though the system doesn't see it. Sorry but it all looks a bit fragile! Upvote 0
I get the initialized label error in your app on my Redmi Note Pro with Android 12 and MUI Global 14.0.4 On my Xiaomi Mi Max 3 with android 10 and Mui Global 12.0.1 and on my Pixel 4a with Android 13, it loads but shows an "Accuracy seems low. Please rotate your phone in "8" pattern" dialog that cannot be dismissed and effectivley freezes the app. On my Microsoft Surface Duo with Android 13 12 it seems to install but doesn't appear in the app drawer and won't run from the Playstore installation page which thinks it is installed, and from which I can uninstall it even though the system doesn't see it. Sorry but it all looks a bit fragile!
IndieDev Active Member Licensed User Longtime User May 26, 2023 #4 Hi Agraham, Thanks for your reply. The Redmi Note 11 Pro (Android 11 & 12) error is something that I don't understand. I tried on a Redmi Note 4 with custom LineageOS 20 (Android 13). Works fine. ? EDIT: Also checked on Redmi Note 5 and a Realme narzo 50A. All worked smooth. B4X: On my Xiaomi Mi Max 3 with android 10 and Mui Global 12.0.1 and on my Pixel 4a with Android 13, it loads but shows an "Accuracy seems low. Please rotate your phone in "8" pattern" dialog that cannot be dismissed and effectivley freezes the app. This dialog issue is taken care of now. Logic error on my side. Haven't need able to test on a tablet yet...... Yeah, looks a bit fragile right now..... ? Last edited: May 26, 2023 Upvote 0
Hi Agraham, Thanks for your reply. The Redmi Note 11 Pro (Android 11 & 12) error is something that I don't understand. I tried on a Redmi Note 4 with custom LineageOS 20 (Android 13). Works fine. ? EDIT: Also checked on Redmi Note 5 and a Realme narzo 50A. All worked smooth. B4X: On my Xiaomi Mi Max 3 with android 10 and Mui Global 12.0.1 and on my Pixel 4a with Android 13, it loads but shows an "Accuracy seems low. Please rotate your phone in "8" pattern" dialog that cannot be dismissed and effectivley freezes the app. This dialog issue is taken care of now. Logic error on my side. Haven't need able to test on a tablet yet...... Yeah, looks a bit fragile right now..... ?
IndieDev Active Member Licensed User Longtime User May 26, 2023 #5 Uploaded version 1.0.5 1.0.6 to playstore. (Accuracy Dialog popup error taken care of) Should be online in a couple of hours. Will revert once it's online. Last edited: May 27, 2023 Upvote 0
Uploaded version 1.0.5 1.0.6 to playstore. (Accuracy Dialog popup error taken care of) Should be online in a couple of hours. Will revert once it's online.
IndieDev Active Member Licensed User Longtime User May 27, 2023 #6 Hi Agraham, The new version uploaded to playstore is working fine now, on the Redmi Note Pro devices. It's probably late for you now, but request you to kindly check if it's working for you too. (Whenever you are able to) Will try and test on a tablet too, if I can get hold of one... EDIT: I get the initialized label error in your app on my Redmi Note Pro with Android 12 and MUI Global 14.0.4 Click to expand... This is also taken care of. Thanks, ? Regards. Last edited: May 27, 2023 Upvote 0
Hi Agraham, The new version uploaded to playstore is working fine now, on the Redmi Note Pro devices. It's probably late for you now, but request you to kindly check if it's working for you too. (Whenever you are able to) Will try and test on a tablet too, if I can get hold of one... EDIT: I get the initialized label error in your app on my Redmi Note Pro with Android 12 and MUI Global 14.0.4 Click to expand... This is also taken care of. Thanks, ? Regards.
agraham Expert Licensed User Longtime User May 27, 2023 #7 Now it seems to work on my Redmi Note 9 Pro and on my Surface Duo. I get the initialized label error in your app on my Redmi Note Pro with Android 12 and MUI Global 14.0.4 Click to expand... This is also taken care of. Click to expand... Out of interest what was the problem? Upvote 0
Now it seems to work on my Redmi Note 9 Pro and on my Surface Duo. I get the initialized label error in your app on my Redmi Note Pro with Android 12 and MUI Global 14.0.4 Click to expand... This is also taken care of. Click to expand... Out of interest what was the problem?
IndieDev Active Member Licensed User Longtime User May 27, 2023 #8 agraham said: Now it seems to work on my Redmi Note 9 Pro and on my Surface Duo. Out of interest what was the problem? Click to expand... Thanks for the update, Agraham. Appreciate the gesture. There were multiple issues. . Geolocation permissions (Starter.rp.CheckAndRequest) . Leftover Label declaration . Stopping the GNSS service without checking if it was started in the first place. (Activity_Pause) . Accuracy message popup without a boolean flag. (removed it for now) For some strange reason, my test devices were loading the app fine without any errors. I guess I didn't face the accuracy dialog issue because the calibration was fine on these phones. Thanks once again. ? Cheers. Upvote 0
agraham said: Now it seems to work on my Redmi Note 9 Pro and on my Surface Duo. Out of interest what was the problem? Click to expand... Thanks for the update, Agraham. Appreciate the gesture. There were multiple issues. . Geolocation permissions (Starter.rp.CheckAndRequest) . Leftover Label declaration . Stopping the GNSS service without checking if it was started in the first place. (Activity_Pause) . Accuracy message popup without a boolean flag. (removed it for now) For some strange reason, my test devices were loading the app fine without any errors. I guess I didn't face the accuracy dialog issue because the calibration was fine on these phones. Thanks once again. ? Cheers.