Hey,
I'm having the following error when i'm trying to run my service in the forground:
I don't receive this error on my Acer Iconia Tab (4.0) but i do receive it on my Xperia PLAY (2.3)
This is my code:
Android - java.lang.IllegalArgumentException: contentIntent required error caused by notification? - Stack Overflow
Anyone can help me?
Tomas
I'm having the following error when i'm trying to run my service in the forground:
** Activity (main) Resume **
** Service (windowservice) Create **
BroadcastReceiver has been initialized.
** Service (windowservice) Start **
android.app.RemoteServiceException: Bad notification for startForeground: java.lang.IllegalArgumentException: contentIntent required: pkg=com.rootsoft.standout id=721774431 notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x60)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1056)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3701)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
at dalvik.system.NativeStart.main(Native Method)
I don't receive this error on my Acer Iconia Tab (4.0) but i do receive it on my Xperia PLAY (2.3)
This is my code:
B4X:
'Start the service in the forground.
Dim n As Notification
n.Initialize
n.Icon = "icon"
n.Vibrate = False
n.OnGoingEvent = True
n.SetInfo("Info", "Prevent from being killed", Main)
Service.StartForeground(0, n)
Android - java.lang.IllegalArgumentException: contentIntent required error caused by notification? - Stack Overflow
Anyone can help me?
Tomas
Last edited: