R rkmoray Active Member Licensed User Longtime User Nov 11, 2011 #1 I am writing an app that uses the SMS service, therefore, even when the phone is sleeping, I want the service to keep running. How would I do that?
I am writing an app that uses the SMS service, therefore, even when the phone is sleeping, I want the service to keep running. How would I do that?
R rkmoray Active Member Licensed User Longtime User Nov 11, 2011 #2 Help please. This is one of the last issues for my app Upvote 0
thedesolatesoul Expert Licensed User Longtime User Nov 11, 2011 #3 Set the service as a foreground service. Look at the services tutorial on how to do that. EDIT: Oops, sorry, also you have to set the device wake lock as well. Upvote 0
Set the service as a foreground service. Look at the services tutorial on how to do that. EDIT: Oops, sorry, also you have to set the device wake lock as well.
R rkmoray Active Member Licensed User Longtime User Nov 11, 2011 #4 Thanks, I will do that tonight. Upvote 0