tags:

views:

72

answers:

2

example scenario is: from login screen - main screen - then when i clicked a hide button the app will go to home screen, and when im going to click the app again the main screen would be called

A: 

i think u want to do the splashscreen to show ur logo are somestuff like that. this link helps u.

Praveen Chandrasekaran
well i need to let the user log in first
mikedroid
+1  A: 

Fire an intent when you want to display the home screen

Intent setIntent = new Intent(Intent.ACTION_MAIN);
setIntent.addCategory(Intent.CATEGORY_HOME);
setIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(setIntent); 

So this will be fired on the pressing of your hide button

Donal Rafferty
perfect! thanks ill keep this snippet for life!
mikedroid