application permissions #8205
VilmanVladimir
started this conversation in
Android
Replies: 1 comment
-
You are using the old Android Support librarys you will need to upgrade to use the AndroidX based libraries to get this to work on newer API levels. The old Support stuff has been deprecated for quite a while now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all
Help with the problem that has arisen. Previously, to enable write permission to local storage, I wrote this:
…
using Android.Support.V4.Content;
using Android.Support.V4.App;
…
…
protected override void Initialize()
{
//Request to enable permissions
if (ContextCompat.CheckSelfPermission(Activity, Manifest.Permission.ReadExternalStorage) != (int)Permission.Granted)
{
// Permission has never been accepted
// So, I ask the user for permission
ActivityCompat.RequestPermissions(Activity, new String { Manifest.Permission.ReadExternalStorage }, PERMISSION_REQUEST_READ_EXTERNAL_STORAGE);
}
base.Initialize();
}
And everything worked well.
And after switching to version 3.8.1 errors appeared
And in the method:
Has anyone encountered this? And how did you solve the problem?
Beta Was this translation helpful? Give feedback.
All reactions