Bad Notification for StartForground

XverhelstX

Well-Known Member
Licensed User
Longtime User
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:

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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…