S Sanxion Active Member Licensed User Longtime User Sep 29, 2016 #1 Hi all Could anybody suggest why my app restarts (on certain devices) when selecting it whilst it is running in the background? I don't have anything in Activity_Pause or Activity_Resume - should something be used there to prevent this? Thanks
Hi all Could anybody suggest why my app restarts (on certain devices) when selecting it whilst it is running in the background? I don't have anything in Activity_Pause or Activity_Resume - should something be used there to prevent this? Thanks
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2016 #2 Are you using a foreground service? Otherwise the process will be killed when the program is in the background. Upvote 0
Are you using a foreground service? Otherwise the process will be killed when the program is in the background.
S Sanxion Active Member Licensed User Longtime User Sep 29, 2016 #3 Erel said: Are you using a foreground service? Otherwise the process will be killed when the program is in the background. Click to expand... Sorry, could you explain what you mean by a "foreground service"? Upvote 0
Erel said: Are you using a foreground service? Otherwise the process will be killed when the program is in the background. Click to expand... Sorry, could you explain what you mean by a "foreground service"?
lemonisdead Well-Known Member Licensed User Longtime User Sep 29, 2016 #4 Sanxion said: foreground service"? Click to expand... https://www.b4x.com/android/help/core.html#service_startforeground Upvote 0
Sanxion said: foreground service"? Click to expand... https://www.b4x.com/android/help/core.html#service_startforeground