How can I do that in Android. Activity -> WebBrowser -> Acrivity, but Press Back not see the WebBrowser -
How can I tell if a web browser calls a custom scheme to start an activity, then I want to That I press the back button but the web browser will not return.
I want to forward only after calling a web browser, then call on my plan to start another activity. When I come back, I will not see a web browser.
How should I do this?
intent = new intent (int. Action_vijay); I.setFlags (Intent.FLAG_ACTIVITY_NO_HISTORY); I.setData (Uri.parse (url)); StartActivity (i); I've already added it, but it does not work!
This is probably because second activity is launched in the same job that you started with the browser , Which means that your second activity is already pushed onto the back-stack with the above activity (activity 1) for the current job. See.
If you start your second activity on a different task, then pressing "back" should end the task and return to work behind the browser.
To accomplish this, you can use FLAG_ACTIVITY_NEW_TASK in your message, or android: launchMode to the one click Set the attribute in code>.
Comments
Post a Comment