Automatic request for access to phone memory on Android

Solved the problem on their own, it turned out that for Android 6.0 and higher resolution are asked in the process of need. it was necessary to attribute in the code the first time you create a save request for permission. That’s all.