How to show dialog to the user to change settings to allow app to make and manage calls after the user selects "Don't ask again"
I am trying to show the permission dialog even if the user selects "Don't ask again" when they click a button using the below code. But this doesn't seem to work. Please help
Dim context As JavaObject
context.InitializeStatic("anywheresoftware.b4a.BA")
context = context.GetField("applicationContext")
Dim settings As JavaObject
settings.InitializeStatic("android.provider.Settings.System")
settings.RunMethod("putInt", Array As Object(context.RunMethod("getContentResolver", Null), _
"READ_PHONE_STATE", 1 ))
I am trying to show the permission dialog even if the user selects "Don't ask again" when they click a button using the below code. But this doesn't seem to work. Please help
Dim context As JavaObject
context.InitializeStatic("anywheresoftware.b4a.BA")
context = context.GetField("applicationContext")
Dim settings As JavaObject
settings.InitializeStatic("android.provider.Settings.System")
settings.RunMethod("putInt", Array As Object(context.RunMethod("getContentResolver", Null), _
"READ_PHONE_STATE", 1 ))