Issue
I have a service I want to run the second the app opens, and only want this service to end as soon as the user exits the app. How do I program those two things?
Solution
use StartService in onCreate of the activity and in onexit button onclicklistener use stopService
Answered By - user1203673
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.