Java – returns the primary activity from any activity on the Android application

I'm developing an Android application with an action bar and a dashboard

When the user clicks the "application logo" button on the actionbar from any activity in the application, it will open the dashboard activity and complete all other activities behind it

If I just started a new dasboard activity, what is the best way? How can I finish other activities?

thank you.

resolvent:

Use startactivity (intent.setflags (intent.flag_activity_clear_top));

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>