How do I handle a back-button press in a (Delphi) Android app?
How can I make my Android app react to the back-button? Is there something as high-level VCL's TApplicationEvents to handle it, or do I need to dive deep into low-level Android-specific stuff here? Right now, most of the demo applications have an on-screen back button to go back to a previous screen. Pressing the psysical button always seems to quit the app, and in some situations it results in an access violation. In the form's OnKey... events, the Key parameter is vkHardwareBack on Android. For example: uses FMX.Platform, FMX.VirtualKeyboard; procedure TForm1.FormKeyUp(Sender: TObject; var