system.openURL() market can't go back

i have encountered one problem

i wanna browse app store url in android

so i write 

string.find(url,"play.google.com/",1,true)) then system.openURL(url)

if i use don’t use system.openURL(popup instead), it’s going to be like this

i expect it goes to outside-browser and redirect to google market 

but i got google play opened in my app

like this

then i can’t go back to my app.

Have to restart it.

how could i avoid it and open one google play URL?

The system.openURL() function is used to display content in another app.  There is no guarantee that the app being displayed will take you back to your app the first time the Back button is pressed.  If you press the Back button enough times, then it will send you back to your app, but it’s up to the 3rd party app to make that decision.  We have no control.

If your intent is to display an app of yours in the app store, then I recommend that you call the native.showPopup(“appStore”) function instead.  This way pressing the back button will send you back to your app.  Have a look at the documentation here…

http://docs.coronalabs.com/api/library/native/showPopup.html

The system.openURL() function is used to display content in another app.  There is no guarantee that the app being displayed will take you back to your app the first time the Back button is pressed.  If you press the Back button enough times, then it will send you back to your app, but it’s up to the 3rd party app to make that decision.  We have no control.

If your intent is to display an app of yours in the app store, then I recommend that you call the native.showPopup(“appStore”) function instead.  This way pressing the back button will send you back to your app.  Have a look at the documentation here…

http://docs.coronalabs.com/api/library/native/showPopup.html