I am starting a new action with two parameters.
Intent intent = new Intent(WebTestActivity.this, MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); Uri uri = Uri.parse(url); intent.setData(uri); startActivity(intent);
And catch the uri in onNewIntent .
@Override public void onNewIntent(Intent intent) {
But the onNewIntent method onNewIntent called twice for an unknown reason, which seems to be wrong.
source share