mxnoname Posted April 29, 2017 Posted April 29, 2017 I'm tring UniGUI for mobile on android and work fine with desktop shortcut. When I open on desktop shortcut, address bar invisible and work like an native application. It's so good for me. But when I click phone's "Back Button" web application is closing. After close when I click shortcut again a new session is starting. I need no close with phone's back button. Is any solution for back button on android. Quote
epos4u Posted April 29, 2017 Posted April 29, 2017 Hi on MainmForm, Closebutton, untick visible Quote
mxnoname Posted April 29, 2017 Author Posted April 29, 2017 Hi on MainmForm, Closebutton, untick visible I mean that; phone's physical back button. Quote
Marlon Nardi Posted April 29, 2017 Posted April 29, 2017 Hello uzuner I solved this problem by creating an application in firemonkey with a TWebBrowser accessing my unigui app. In Firemoneky you use the following command: if Key = vkHardwareBack then begin // Do whatever you want to do here Key := 0; // Set Key = 0 if you want to prevent the default action end; Handler OnKeyUp 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.