In My application I want to apply logout functionality. For that I placed a menu item for Logout. If Logout is pressed . I called the LoginActivity.
Intent login=new Intent(getApplicationContext(),LoginActivity.class);
login.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(login);
But the problem is , In My application i called lot of activity as StartActivityForResult(). All these activities are still in backstack. How can i remove all these activities (StartActivityForResult) from backstack.
When I run in my andriod device , I am not facing this problem. But while running in my emulator i face this problem
Thanks, Sridhar.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.