I am trying to get the camera and micro permissions on Android. I added in the codenameone_library_required.properties file :
android.xpermissions=<uses-permission android:name="android.permission.CAMERA" android:required="true"/> <uses-permission android:name="android.permission.RECORD_AUDIO" android:required="true"/> <uses-permission android:name="android.permission.INTERNET" android:required="true"/>
This works for older versions of Android, but not in for Marshmallow as expected. Thus, I read on the codename one developer guide that to ask for permissions in later android version I have to target sdk 23. Indeed, I added in the build hints :
android.targetSDKVersion=23
But Unfortunately this is not sufficient and when I launch the application it does not ask for the permissions.
Should I add something to ask for permissions? Maybe the "Display.getInstance().setProperty(...)" ?
Thank you in advance!