Android Question What does this error mean - anywheresoftware.b4a.keywords.Common.StartServiceImpl?

Alex_197

Well-Known Member
Licensed User
Longtime User
I can't find Common.java file
B4X:
Exception java.lang.RuntimeException:
  at anywheresoftware.b4a.keywords.Common$11.run (Common.java:1184)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:233)
  at android.os.Looper.loop (Looper.java:344)
  at android.app.ActivityThread.main (ActivityThread.java:8210)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:584)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1034)
Caused by android.app.ForegroundServiceStartNotAllowedException:
  at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel (ForegroundServiceStartNotAllowedException.java:54)
  at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel (ForegroundServiceStartNotAllowedException.java:50)
  at android.os.Parcel.readParcelable (Parcel.java:3350)
  at android.os.Parcel.createExceptionOrNull (Parcel.java:2437)
  at android.os.Parcel.createException (Parcel.java:2426)
  at android.os.Parcel.readException (Parcel.java:2409)
  at android.os.Parcel.readException (Parcel.java:2351)
  at android.app.IActivityManager$Stub$Proxy.startService (IActivityManager.java:6072)
  at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1850)
  at android.app.ContextImpl.startForegroundService (ContextImpl.java:1826)
  at android.content.ContextWrapper.startForegroundService (ContextWrapper.java:791)
  at anywheresoftware.b4a.keywords.Common.StartServiceImpl (Common.java:905)
  at anywheresoftware.b4a.keywords.Common.StartService (Common.java:893)
  at anywheresoftware.b4a.keywords.Common$11.run (Common.java:1154)
Caused by android.os.RemoteException: Remote stack trace:
  at com.android.server.am.ActiveServices.startServiceLocked (ActiveServices.java:750)
  at com.android.server.am.ActiveServices.startServiceLocked (ActiveServices.java:663)
  at com.android.server.am.ActivityManagerService.startService (ActivityManagerService.java:12521)
  at android.app.IActivityManager$Stub.onTransact (IActivityManager.java:2564)
  at com.android.server.am.ActivityManagerService.onTransact (ActivityManagerService.java:2669)
 

Alex_197

Well-Known Member
Licensed User
Longtime User
It is one of the files used to compile core.jar. It implements most of the B4X keywords like Asc, Chr, Log, Max, Min etc.
Thanks for your reply.

How can see what in this line?
B4X:
Exception java.lang.RuntimeException:
  at anywheresoftware.b4a.keywords.Common$11.run (Common.java:1184)
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
You can't but you don't need to. The stack trace shows you the reason for the problem.
(ForegroundServiceStartNotAllowedException
I'm not up on Services but it looks like maybe you are doing something that Google no longer allows with whatever your target SDK is.
 
Upvote 0

Alex_197

Well-Known Member
Licensed User
Longtime User
You can't but you don't need to. The stack trace shows you the reason for the problem.

I'm not up on Services but it looks like maybe you are doing something that Google no longer allows with whatever your target SDK is.
I'm using Firebase push messages and Firebase Crashlytics. As far as I remember Google Play app should be updated on the phone. Am I right? Maybe this particular phone doesn't have updated version?
 
Upvote 0

Similar Threads

D
Replies
11
Views
2K
Deleted member 103
D
D
  • Question
Replies
14
Views
2K
Deleted member 103
D
Top