Android Question Back button exiting my app?

How do I use my normal Android button to go back to the previous page.
I converted my website into Android app but when ever I click the back button it exit the app.
Please I need assistance. And I m new here.
 

KMatle

Expert
Licensed User
Longtime User
Beneath B4XPages:

You can have multiple activities. The back button returns to the previous activity. If there's only one, Android exits your app. If you start another activity from the first one, Android returns to the calling activity and so on.
 
Upvote 0
It
Beneath B4XPages:

You can have multiple activities. The back button returns to the previous activity. If there's only one, Android exits your app. If you start another activity from the first one, Android returns to the calling activity and so on.
Beneath B4XPages:

You can have multiple activities. The back button returns to the previous activity. If there's only one, Android exits your app. If you start another activity from the first one, Android returns to the calling activity and so on.
I have just one activity.

I converted my website into app. Whenever I click on the back button it it exit
 
Upvote 0

AnandGupta

Well-Known Member
Licensed User
Longtime User
I converted my website into app. Whenever I click on the back button it it exit
Looks like you have only one activity and are showing webview (maybe) on it.
If you want to show different panels then better use b4xpages
or handle the back key in your code.
 
Upvote 0
Top