Forum: Cross-Platform-Entwicklung
by mjustin,
14. Jun 2022
Die generellen Best Practices für die Anforderung dieser Berechtigung sind hier beschrieben:
https://developer.android.com/training/location/permissions
Ich würde einen neuen Thread hier dafür beginnen (neue Frage, neues Thema).
Forum: Cross-Platform-Entwicklung
by mjustin,
13. Jun 2022
Vermutlich durch ein "uses JSettings", so wie es auch bei JIntent schon gemacht wird:
Intent := TJIntent.JavaClass.init( JSettings.JavaClass.APPLICATION_DETAILS_SETTINGS );
Beispiel von SO https://stackoverflow.com/a/42686077/80901)
if aResultCode = TJActivity.JavaClass.RESULT_OK then
Forum: Cross-Platform-Entwicklung
by mjustin,
13. Jun 2022
Anstatt der selbst definierten Konstante sollte auch ein Auslesen der definierten Konstante funktionieren:
android.provider.Settings.JavaClass.APPLICATION_DETAILS_SETTINGS
Für Android entwickle ich nur mit Java, aber der sonstige Code sieht ok aus :)
Forum: Cross-Platform-Entwicklung
by mjustin,
13. Jun 2022
https://developer.android.com/reference/android/provider/Settings#ACTION_APPLICATION_DETAILS_SETTINGS
"Show screen of details about a particular application."
Von allen auf der Seite angebotenen Activity Actions scheint das die einzige zu sein, von der aus man zu den Permissions der angegebenen App gelangt.