Catalog · How the catalog works
CustomActivityAndListener
FMX: Custom Activity And Listener
- ★ 13 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
CustomActivityAndListener
Android runtime permissions (API23)
The activity contains the onRequestPermissionsResult event.
- Add the "Custom.jar" library to your project through "Project Manager".
- Connect the unit "CustomActivityEvent.pas" to the project.
- Implement the method "procedure onReceivePermissionsResult(const ASender: TObject; const AMessage: TMessage);" In the form class.
- Register method "TMessageManager.DefaultManager.SubscribeToMessage(TMessageResultPermissions, onReceivePermissionsResult);"
- Open the file "AndroidManifest.template.xml", find "com.embarcadero.firemonkey.FMXNativeActivity", replace with "com.embarcadero.firemonkey.CustomActivity".
- Done.
Tested: Delphi 10.1 Berlin +
FMX: Custom Activity And Listener for Android

