I’m developing an android application which have a kind of action bar and a dashboard.
When the user click the “application logo” button on the ActionBar from any Activity in the application,
it would then open the dashboard activity. And finish all others Activities behind it.
What is the best way to do that, if I just start the new Dasboard Activity,
then how could I finish others activities behind it?
Thanks.
use
startActivity(intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));