Android Question Crash Report - Play Console.

Status
Not open for further replies.

fasilosman

Active Member
Licensed User
Longtime User
This is my first app I publish in play store. Can anyone help me to understand this crash report please. How to find what might be the error.

Thanks
B4X:
oday, 7:01 AM on app version 2
Nokia Nokia 6.1 (PL2_sprout), Android 9
Report 1 of 1
java.lang.RuntimeException:
  at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.handleStartIntent (ServiceHelper.java:158)
  at serandib.jobs.noti.handleStart (noti.java:99)
  at serandib.jobs.noti.access$000 (noti.java:8)
  at serandib.jobs.noti$2.run (noti.java:80)
  at android.os.Handler.handleCallback (Handler.java:898)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:198)
  at android.app.ActivityThread.main (ActivityThread.java:6716)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
Caused by: java.lang.SecurityException:
  at android.os.Parcel.createException (Parcel.java:1950)
  at android.os.Parcel.readException (Parcel.java:1918)
  at android.os.Parcel.readException (Parcel.java:1868)
  at android.app.IActivityManager$Stub$Proxy.setServiceForeground (IActivityManager.java:5150)
  at android.app.Service.startForeground (Service.java:695)
  at anywheresoftware.b4a.objects.ServiceHelper.StartForeground (ServiceHelper.java:81)
  at anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.handleStartIntent (ServiceHelper.java:156)
Caused by: android.os.RemoteException:
  at com.android.server.am.ActivityManagerService.enforcePermission (ActivityManagerService.java:9694)
  at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked (ActiveServices.java:1234)
  at com.android.server.am.ActiveServices.setServiceForegroundLocked (ActiveServices.java:885)
  at com.android.server.am.ActivityManagerService.setServiceForeground (ActivityManagerService.java:21037)
  at android.app.IActivityManager$Stub.onTransact$setServiceForeground$ (IActivityManager.java:10577)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
If B4A 8.5 supports android 9 (SDK 28) then why I couldn't find "android.permission.FOREGROUND_SERVICE" in runtime library. Do am I missing something.
I'm sorry but you are still confusing support with recommended targetSdkVersion. The correct solution was given multiple times. You should set the targetSdkVersion to 26. Your app will work on all devices including Android 9 devices.

If B4A 8.5 supports android 9 (SDK 28) then why I couldn't find "android.permission.FOREGROUND_SERVICE" in runtime library
1. There is no relation between this permission and support of Android 9.
2. It is not a dangerous permission so you don't need to request it at runtime.

That was my last answer in this thread.
 
Upvote 0
Status
Not open for further replies.
Top