Issue
Is it possible that activity (which is called finish) start some other activity?
like below code?
Intent intent = new Intent(activity, OtherActivity.class);
activity.finish();
activity.startActivity(intent);
Solution
Yes, in fact sometimes you do this on purpose. The result of this would be to remove the current activity from the backstack, and start OtherActivity. Splash screens and login screens frequently do this, especially if the login screen isn't just at the start of the app, but pops up as a result of a timeout.
Answered By - Gabe Sechan
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.