简体   繁体   中英

How i can open a splashtop app from my own app in android

Can anyone please help me to open a splashtop app from my own app. I installed splashtop and created an account in it. In my app, i have a field for entering the username and password and also an ok button. By entering the username and password of splashtop acount in my own app, when i press ok button, it will go the original splashtop app. Please help me for creating this. Thanks in Advance.

Please anyone help me for that.

I found a solution for that, we can do it by

Intent LaunchIntent = 
    getPackageManager().getLaunchIntentForPackage("com.splashtop.remote.pad.v2");
startActivity(LaunchIntent); 

This will help you, its for moving from one activity of one application to another activity of another application.

final Intent intent = new Intent();

ComponentName cActname = new ComponentName
("package_name","package_name.class_name");

intent.setComponent(cActname);         
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