Android Question Service.StartForeground and Setinfo2

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Hi, now Im having problems with

B4X:
snot.SetInfo2("PortIt","Servicio de Lectura",0,mDashboard)

mDashboard is the 2nd activity that is called by Main when the app starts, the app never comes back to Main.
If I use this code when I use the app and goes back and forth into the app activities, if I click in the notification sometimes it does not works well, it crashes or loose variables..

If I code like
B4X:
snot.SetInfo2("PortIt","Servicio de Lectura",0,"")
nothing happesn and all is ok

Is the any thing I can replace mDashboard to make the app to open in the actual activity?

Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…