Reputation: 41749
A user presses on a URL in my app and the URL opens in the mobile browser.
Is it possible that I detect in my app when a user returned from the mobile browser to my app?
Many users will simply read the content of URL and press back to return to my app.
Test case:
If I did not explain this well, please let me know.
Upvotes: 1
Views: 228
Reputation: 6380
I would suggest that you launch the URL with startActivityForResult. Then, when the user returns to your application onActivityResult will be called, and if the RequestCodes align you know it is the web browser.
For more information, take a look at this: http://developer.android.com/reference/android/app/Activity.html#StartingActivities
Upvotes: 3