Android Question Call dead activity from service

invocker

Active Member
I have two problem
1 - I declare a global variable x as int
when activity was Loaded I inc(x) x= 1

then activity.finish and service still running the problem is th variable x is x = 0 and not x= 1 why ? I declare variable x as int from starter

2 - How can call activity again from service when it finish I use callsub and callsubdelay but not work I set a stub test then call it from service and not work again
 

invocker

Active Member
the first one can't saving a variable in memory for that I save it in disk and read it from their

B4X:
save = File.ReadString(File.DirRootExternal, "save.txt")

2 - resolve it
B4X:
StartActivity(Main)

Thank you
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…