Dear All,
I have an activity that start a service by clicking button.
Could you please advice how to:
1. Stop a ForeGround service after the application is closed by sliding the application in recent app list on android 4.2.1.
How to call stopForeground, where should i put the "stopForeground", and how to trigger it. I have been trying to re-open the application (from home), and click stop button and put stopForeground(Id of notification), but it fail.
2. is it possible to trap "datetime.now = target-time" in running service?
Thanks in advance
Best Regards
I have an activity that start a service by clicking button.
Could you please advice how to:
1. Stop a ForeGround service after the application is closed by sliding the application in recent app list on android 4.2.1.
How to call stopForeground, where should i put the "stopForeground", and how to trigger it. I have been trying to re-open the application (from home), and click stop button and put stopForeground(Id of notification), but it fail.
2. is it possible to trap "datetime.now = target-time" in running service?
Thanks in advance
Best Regards