Hello, i´m playing around with the Calendars on my Device and want to Query them. I found out how it works using ContentResolver querying the ContentProvider available in Android. You can find it documented here. I started using java code and a java-librarywrapper for this but then i realized...
www.b4x.com
chideo i permessi alla vecchia maniera, ma non funziona, per farlo funzionare devo dare i permessi a mano dalle impostazioni dell'app
quale metodo dovrei usare per poter dare i permessi direttamente all'avvio dell'app?
B4X:
' manifest
AddManifestText(
<uses-permission android:name="android.permission.READ_CALENDAR"/>
<uses-permission android:name="android.permission.WRITE_CALENDAR"/>
)
rp.CheckAndRequest("android.permission.READ_CALENDAR")
wait for Activity_PermissionResult (Permission As String, Result As Boolean)
rp.CheckAndRequest("android.permission.WRITE_CALENDAR")
wait for Activity_PermissionResult (Permission As String, Result As Boolean)