How to start an activity from service when user press home button. As mentioned in this feature that for 5 seconds the activity cannot be started: link
I want to start the activity when user taps on it.
Thanks!
How to start an activity from service when user press home button. As mentioned in this feature that for 5 seconds the activity cannot be started: link
I want to start the activity when user taps on it.
Thanks!
To run after a specified time, you can use the following code to do:
new CountDownTimer(5000, 1000){
@Override
public void onTick(long millisUntilFinished){}
@Override
public void onFinish(){
// Your code run after 5 second...
}
}.start();