I wanna know can I redirect my application to another application, I am using android studio and i am a biginner, I searched a solution but I did not find. i want to to redirect my application to another which control my ip camera
Asked
Active
Viewed 34 times
1 Answers
1
For this purpose you should use intents https://developer.android.com/training/basics/intents/sending.html
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.package.targetapp");
if (launchIntent != null) {
startActivity(launchIntent);
}

Vadims Savjolovs
- 2,618
- 1
- 26
- 51
-
Just to clarify, "com.package.yourapp" should be the target app's package, not your app. – Marc Carné Bori Mar 07 '17 at 15:22
-
1Exactly, I'll rename it to avoid confusion. Thank you – Vadims Savjolovs Mar 07 '17 at 15:23
-
if i wanna redirect to facebook what i have to di in package ? – Yasmine Mar 07 '17 at 15:43