Android Question App crash - Object should first be initialized (Intent)

FrankBerra

Active Member
Licensed User
Hi all
i have developed an app with a sticky service that is restarted at regular intervals. Everything seems to work but sometimes the app crashes randomly whithout reasons.

I took a look to the Logcat and it says:
B4X:
java.lang.RuntimeException: Unable to start service pippo.app.radar@2952976 with null: java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Intent).
Someone had the same issue (http://www.b4x.com/android/forum/threads/intent-not-initialize-in-process-restart.27528/) but i am not a skilled developer so i don't know how to solve this problem.

Anyone can help me with an explanation about what it is going wrong?

In the first lines of code of the service i put something like this:
B4X:
If StartingIntent.Action = "android.bluetooth.device.action.FOUND" Then
...
else
...
end if
Is the problem related to this?

Thank You!
 
Top