Using my Android app, I'm trying to launch an external app's component explicitly.
ComponentName name = new ComponentName("other.app.android", "other.app.android.Activity1");
Uri uri = Uri.parse("http://127.0.0.1:8111");
Intent abc = new Intent();
abc.setData(uri);
abc.setComponent(name);
startActivity(abc);
Should I add these two lines in order to make it run correctly?
(1) abc.addCategory("android.intent.category.DEFAULT");
(2) abc.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);