简体   繁体   中英

Android - Call another application inside my application

It´s possible call another application with startActivity(...) but my Activity continues with the focus? In the top of the screen?

It´s possible call another application with startActivity(...) but my Activity continues with the focus? In the top of the screen?

Simply not possible but if you are looking to start the activity of another application that you can do but that will be on the top of the screen.

Package name => Application package name which you want to start the activity of.

Intent intent = new Intent();
intent.setComponent(new ComponentName("packagename","Activity.java"));   
startActivity(intent); 

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