Hi,
     When you click on home button you have to create intent object
and have to start home activity. but before starting activity set
intent flag as follow.
 Intent intent=new Intent(context,HomeActivity.class);
                          intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                          startActivity(intent);
this will cause to search weather your home activity in stack if yes
it will close all activities on this activity and start home activity
for you

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to