Trying to start an alarm with the following code
And a request for permission is also added in the manifest editor:
But when it runs, it still comes with a Permission Denial error. How to solve it?
B4X:
Sub SetAlarm(Hour As Int, Minutes As Int)
Dim i As Intent
i.Initialize("android.intent.action.SET_ALARM", "")
i.PutExtra("android.intent.extra.alarm.HOUR", Hour)
i.PutExtra("android.intent.extra.alarm.MINUTES", Minutes)
i.PutExtra("android.intent.extra.alarm.SKIP_UI", False)
StartActivity(i)
End Sub
And a request for permission is also added in the manifest editor:
B4X:
AddPermission(com.android.alarm.permission.SET_ALARM )
But when it runs, it still comes with a Permission Denial error. How to solve it?