Inside my app's webView, I successfully login to a https site, and I get its cookie and other extra headers.
However, the next step of the app, is that user enters his credit cards details, and I really don't want this to be done inside my app.
I prefer this to be done in the external default android browser.
So, my question is if and how I can open the desired uri adding the needed headers.
I found this code:
Intent browserIntent = new Intent(
Intent.ACTION_VIEW, Uri.parse(url));
Bundle bundle = new Bundle();
bundle.putString("iv-user", username);
browserIntent.putExtra(Browser.EXTRA_HEADERS, bundle);
activity.startActivity(browserIntent);
activity.finish();
Haven't test it, but in order to do so, I would prefer to not create a lib for generating the bundle needed.
Any ideas? Thank you.