android - Activitiy's layout opens more than one? -
i have 3 activities connected witdh 3 layouts. when call activity everytime before 1 collect background. eg. on mainactivity then, call b call main again when on b, after call b , sitution if click on screen b, comes b>main>b>main or such b>a>main>a>main>b>main...
private intent intent_main; . . . intent_main = new intent(this, mainactivity.class); startactivity(intent_main);
this code calling activities, b (this, b.class)
that...
i want when click on different main turn main , when main shows exit -not show activity screens-...
edit: how can close screen (exit) on main activity , how can return main activity others?
[if go b.class , screen go main activity (with button etc.) , again b, after click return main activity push again return first b , click returns first time openin mainactivity after close]
instead of starting new intent
go activty main each time you're in activity b call finish()
Comments
Post a Comment