android - What is the command to return to your main screen in an app? -


how have app return 'home' screen when user on different class , click back/return button on phone?

right now, when access different class , hit button, goes home screen on droid rather home screen on app - how go home screen on app?

thanks!

use onbackpressed() method of activity class. make conditions :

public void onbackpressed(){     if(conditon)   {     detailinfolist.setvisibility(view.visible);//or want show   } } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -