Tuesday, June 19, 2012

How to open browser link in new tab or not open in Android?

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.putExtra("create_new_tab", false); // true or false
intent.putExtra("com.android.browser.application_id", paramComponentName.getPackageName());

No comments:

Post a Comment