Timer in Background
you need to start your service in the onStop()
method in your activity like this:
@Override
protected void onStop() {
super.onStop();
//write your code here to start your service
}
you need to start your service in the onStop()
method in your activity like this:
@Override
protected void onStop() {
super.onStop();
//write your code here to start your service
}