I use Intent Filter in my activity to get the URL clicked by the user.
In my onCreate method work, I have the following code
Intent intent = getIntent(); if (Intent.ACTION_VIEW.equals(intent.getAction())) { url = intent.getDataString(); showDialog(DIALOG_ID); }
It works great except when I rotate my phone. Even if the dialog was closed before the turn, it opens again every time the phone is changed orientation. I can do it.
For your information, I do not want to block the orientation
source share