R ronell Well-Known Member Licensed User Longtime User Dec 1, 2016 #1 how can i go back to the last page after i load a webpage because pressing back button on my phone ends the program .. Sub webview_Click webview.Initialize("webview") Activity.AddView(webview, 0, 0, 100%x, 100%y) webview.LoadUrl("https://www.google.com.ph/?gfe_rd=cr&ei=vZ4_WIKqN5Dj8we-m5G4AQ&gws_rd=ssl") End Sub
how can i go back to the last page after i load a webpage because pressing back button on my phone ends the program .. Sub webview_Click webview.Initialize("webview") Activity.AddView(webview, 0, 0, 100%x, 100%y) webview.LoadUrl("https://www.google.com.ph/?gfe_rd=cr&ei=vZ4_WIKqN5Dj8we-m5G4AQ&gws_rd=ssl") End Sub
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2016 #2 You can call WebView.Back to go back. Upvote 0
R ronell Well-Known Member Licensed User Longtime User Dec 1, 2016 #3 Erel said: You can call WebView.Back to go back. Click to expand... i tried it .. when i press back button it close the program Upvote 0
Erel said: You can call WebView.Back to go back. Click to expand... i tried it .. when i press back button it close the program
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2016 #4 This is expected. You need to handle Activity_KeyPress to catch the back key. https://www.b4x.com/android/forum/pages/results/?query=back+key Upvote 0
This is expected. You need to handle Activity_KeyPress to catch the back key. https://www.b4x.com/android/forum/pages/results/?query=back+key
R ronell Well-Known Member Licensed User Longtime User Dec 1, 2016 #5 Erel said: This is expected. You need to handle Activity_KeyPress to catch the back key. https://www.b4x.com/android/forum/pages/results/?query=back key Click to expand... tnx it did work! Upvote 0
Erel said: This is expected. You need to handle Activity_KeyPress to catch the back key. https://www.b4x.com/android/forum/pages/results/?query=back key Click to expand... tnx it did work!