This is not something I was not looking for but I just found it. I thought it will be helpful for someone out there.
key point here is putExtra("create_new_tab", false);
Intent intent = new Intent("android.intent.action.VIEW", null);
intent.addCategory("android.intent.category.BROWSABLE");
intent.setComponent(paramComponentName);
intent.putExtra("create_new_tab", false); // true or false
intent.putExtra("com.android.browser.application_id", paramComponentName.getPackageName());
startActivity(intent);
No comments:
Post a Comment