Good
Sorry for the translation. Translation x Google
Testing the permission class in which annex the list I have the following error in logs. Could you help me solve it.
Thank you
Yesterday at 11:30 AM
Good
Sorry for the translation. Translation x Google
Testing the permission class in which annex the list I have the following error in logs. Could you help me solve it.
Thank you
B4X:
#Region Project Attributes
#ApplicationLabel: B4A Example Permission
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private rp As RuntimePermissions
Private shared As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
shared=rp.GetSafeDirDefaultExternal("")
Dim testFolder As String=rp.GetSafeDirDefaultExternal("test")
File.WriteString(testFolder,"test.txt", "aaa")
rp.CheckAndRequest(rp.PERMISSION_READ_PHONE_STATE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
Dim pid As PhoneId
Log(pid.GetDeviceId)
Else
Log("No Permission")
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Registo conectado a: motorola moto g(7) play
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
java.lang.NoSuchMethodError: No static method checkSelfPermission(Landroid/content/Context;Ljava/lang/StringI in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in base.apk)
at anywheresoftware.b4a.objects.RuntimePermissions.Check(RuntimePermissions.java:55)
at anywheresoftware.b4a.objects.RuntimePermissions.CheckAndRequest(RuntimePermissions.java:79)
at CAB.Permissions.main$ResumableSub_Activity_Create.resume(main.java:418)
at CAB.Permissions.main._activity_create(main.java:381)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at CAB.Permissions.main.afterFirstLayout(main.java:104)
at CAB.Permissions.main.access$000(main.java:17)
at CAB.Permissions.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6923)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
** Activity (main) Resume **
Sorry for the translation. Translation x Google
Testing the permission class in which annex the list I have the following error in logs. Could you help me solve it.
Thank you
B4X:
#Region Project Attributes
#ApplicationLabel: B4A Example Permission
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private rp As RuntimePermissions
Private shared As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
shared=rp.GetSafeDirDefaultExternal("")
Dim testFolder As String=rp.GetSafeDirDefaultExternal("test")
File.WriteString(testFolder,"test.txt", "aaa")
rp.CheckAndRequest(rp.PERMISSION_READ_PHONE_STATE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
Dim pid As PhoneId
Log(pid.GetDeviceId)
Else
Log("No Permission")
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Yesterday at 11:30 AM
Good
Sorry for the translation. Translation x Google
Testing the permission class in which annex the list I have the following error in logs. Could you help me solve it.
Thank you
B4X:
#Region Project Attributes
#ApplicationLabel: B4A Example Permission
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private rp As RuntimePermissions
Private shared As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
shared=rp.GetSafeDirDefaultExternal("")
Dim testFolder As String=rp.GetSafeDirDefaultExternal("test")
File.WriteString(testFolder,"test.txt", "aaa")
rp.CheckAndRequest(rp.PERMISSION_READ_PHONE_STATE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
Dim pid As PhoneId
Log(pid.GetDeviceId)
Else
Log("No Permission")
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Registo conectado a: motorola moto g(7) play
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
java.lang.NoSuchMethodError: No static method checkSelfPermission(Landroid/content/Context;Ljava/lang/StringI in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in base.apk)
at anywheresoftware.b4a.objects.RuntimePermissions.Check(RuntimePermissions.java:55)
at anywheresoftware.b4a.objects.RuntimePermissions.CheckAndRequest(RuntimePermissions.java:79)
at CAB.Permissions.main$ResumableSub_Activity_Create.resume(main.java:418)
at CAB.Permissions.main._activity_create(main.java:381)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at CAB.Permissions.main.afterFirstLayout(main.java:104)
at CAB.Permissions.main.access$000(main.java:17)
at CAB.Permissions.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6923)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
** Activity (main) Resume **