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. 回答1: In the form's OnKey... events, the Key parameter is vkHardwareBack on