I am getting an issue while opening URL in my default browser (Chrome)
My requirement is opening URL in the last open tab in Chrome browser for 4.4.4 (Chrome is default browser). NOT in a new tab.
Below code is opening URL in a new tab:
Intent mBrowserIntent = new Intent(Intent.ACTION_VIEW);
mBrowserIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); mBrowserIntent.putExtra(Browser.EXTRA_APPLICATION_ID,mContext.getPackageName()); mBrowserIntent.addCategory(Intent.CATEGORY_BROWSABLE);
mBrowserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mBrowserIntent.setData(Uri.parse(mUrl));
mContext.startActivity(mBrowserIntent);
Please help in resolving this issue.
Thanks,