I am working on a application where i want to add headers to browser in android. Its working pretty fine on Google chrome.
But this is not working on other available browsers like Firefox, UC browser, OperaMini, Dolphin
Below is the code that i tried.
Intent mIntent = new Intent(Intent.ACTION_VIEW,Uri.parse(URL));
Bundle bundle = new Bundle();
bundle.putString(Constants.REQUEST_HEADER_TOKEN, "token");
bundle.putString(Constants.REQUEST_HEADER_AUTH, "Basic bfjdslfs");
mIntent.putExtra(Browser.EXTRA_HEADERS, bundle);
startActivity(mIntent);
Any help will be appreciated.Thanks in advance.
WebView
is often a bad solution, because it differs from OS to OS and manufacturer to manufacturer. Mobile browsers are much better thanWebView
. – Bukharin