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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -