Android Question [SOLVED] - Google Play reports crashes but the app works fine for me and others

rleiman

Well-Known Member
Licensed User
Greetings,

Google Play is reporting that my radio streaming app is crashing with the same error across multiple devices including the same phone brand that I'm using. What has me confused is it doesn't crash on my phone and I had the app running during the day and also over night. Seems like it may be coming from the Okhttputils2 library.

Here's the crash report from Google.

B4X:
java.lang.NullPointerException:
  at vifm.streaming.httputils2service._hc_responseerror (httputils2service.java:163)
  at java.lang.reflect.Method.invoke (Native Method)
  at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:213)
  at anywheresoftware.b4a.BA$2.run (BA.java:387)
  at android.os.Handler.handleCallback (Handler.java:907)
  at android.os.Handler.dispatchMessage (Handler.java:105)
  at android.os.Looper.loop (Looper.java:216)
  at android.app.ActivityThread.main (ActivityThread.java:7625)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)
Since I don't know anything about Java, can you help me find where in my coding all of these errors are coming from? Most devices this app is installed onto does not have any crashes. Could other apps installed on their phones be causing the crashes on my app?

Thanks.
 

rleiman

Well-Known Member
Licensed User
Hi, you've marked this as SOLVED, to help others in future, how was it solved?
This WIFI library solved it. Check for the internet in your Activity_Resume sub routine. If there's no internet give the user a toast message that there's no internet connection, then exit the app.
 
Top