简体   繁体   中英

Issue in switching from one activity to other

I have Activity1 Activity2 Activity3 activities in my application.

now I want to switch from Activity3 to Activity1.

How do I proceed?

And also, how to finish an activity from another activity?

you should use Inetnts to navigate from one page to another page and more over you shoul add activity for every class in the manifest.xml

if not trace out in the DDMS.

Intent i = new Intent(Activity3.this , Activity1.class);
startActivity(i);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM