stopService(itnt_BackServices); are used to stop any background service. but
- how can i stop intent or block it while i press button?
i have lots of serching it but not getting any clue on stop Intent.
Purpose: i have use CountdownTimer. as complete countDown it fire finish() method and scope of that i have make startActivity(intent);
now problem is, in between countdown i press button and stop my intent. so how can i do this?
I think that the easiest method would be to use a boolean variable in your class:
Then, set it to true when button is clicked. If it is true, do not launch the other activity or so.