Issue
I have activity A, having timer thread. after 5 sec it jumps to activity B via intent. how to destroy activity A when you are on activity B so that back button don't let you go back to activity A.
Solution
You have to clear the activity backstack.
intent = new Intent(this, Activity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
StartActivity(intent);
Answered By - András Kovács
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.