mxnoname Posted April 29, 2017 Share 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 Link to comment Share on other sites More sharing options...
epos4u Posted April 29, 2017 Share Posted April 29, 2017 Hi on MainmForm, Closebutton, untick visible Quote Link to comment Share on other sites More sharing options...
mxnoname Posted April 29, 2017 Author Share Posted April 29, 2017 Hi on MainmForm, Closebutton, untick visible I mean that; phone's physical back button. Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted April 29, 2017 Share 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 Link to comment Share on other sites More sharing options...
bbosnjak Posted April 30, 2017 Share Posted April 30, 2017 Neat! Sent from my SM-P900 using Tapatalk Quote Link to comment Share on other sites More sharing options...
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.