How to read and write to external storage in latest android from Python | Kivy

preview_player
Показать описание

This is due to scoped storage in android

To read the image files use the following code to ask for permissions to read images

request_permissions([Permission.READ_MEDIA_IMAGES, Permission.READ_EXTERNAL_STORAGE, Permission.WRITE_EXTERNAL_STORAGE])

The shared folders like Documents, Pictures and Downloads are available for writing. You can use these folder to write the output. Following code will write the pdf to documents folder after creating a folder inside documents folder.

This code is a part of our []image to pdf converter app.

print('Processed images')

#coding #appdevelopment #buildandroidapp
Рекомендации по теме
welcome to shbcf.ru