Good day to all! I have the following task. I need to understand how to request permissions to use gps and other "dangerous" permissions on Android 6 (sdk 23) during the execution of the program on the device! My program is written in Rad Studio 10.1 Berlin (firemonkey) and all permissions are registered in the manifest, but the manifesto in Android 6 does not solve anything! Where can I find information on this issue?

<?xml version="1.0" encoding="utf-8" ?> <!-- BEGIN_INCLUDE(manifest) --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.embarcadero.TransPorter" android:versionCode="53" android:versionName="1.5.2" android:installLocation="preferExternal"> <!-- This is the platform API where NativeActivity was introduced. --> <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> <uses-permission android:name="android.permission.CALL_PHONE" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_CALENDAR" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.SEND_SMS" /> <uses-permission android:name="android.permission.WRITE_CALENDAR" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-feature android:glEsVersion="0x00020000" android:required="True" /> <application android:persistent="False" android:restoreAnyVersion="False" android:label="TransPorter" android:debuggable="False" android:largeHeap="False" android:icon="@drawable/ic_launcher" android:theme="@style/AppTheme" android:hardwareAccelerated="true"> <!-- Our activity is a subclass of the built-in NativeActivity framework class. This will take care of integrating with our NDK code. --> <activity android:name="com.embarcadero.firemonkey.FMXNativeActivity" android:label="TransPorter" android:configChanges="orientation|keyboard|keyboardHidden" android:launchMode="singleTask"> <!-- Tell NativeActivity the name of our .so --> <meta-data android:name="android.app.lib_name" android:value="TransPorter" /> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <receiver android:name="com.embarcadero.firemonkey.notifications.FMXNotificationAlarm" /> </application> </manifest> <!-- END_INCLUDE(manifest) --> 
  • Here I recently asked for the inclusion of geodata - elik
  • It is written on pure android (java)! How to do it on the android - I understand. But how in firemonkey (Object Pascal)? - Roman Matveev
  • Sadness! ..... I realized that you can only download the program and manually, in the permissions section, set the switches to the right in order to open access to the desired service or device sensor! - Roman Matveev

0