Android- How to save a image DCIM folder

60 views
Skip to first unread message

Ayhan Celik

unread,
Jul 9, 2019, 6:17:05 AM7/9/19
to Py4A
from kivy.app import platform
 
if platform() == 'android':
    DATA_FOLDER = os.getenv('EXTERNAL_STORAGE') or os.path.expanduser("~")

it's not worked ???
please help..

Tim Ralph

unread,
Jul 9, 2019, 12:18:23 PM7/9/19
to Py4A
platform from kivy.app is a variable, not a function.

Change your code from:

if platform() == 'android' ...

to the following:

if platform == 'android' ...

I hope this helps.

Ayhan Celik

unread,
Jul 9, 2019, 12:18:23 PM7/9/19
to Py4A
kivy launcher also works but it doesn't work when I make apk Do I need a change in buildozer spect file?



9 Temmuz 2019 Salı 13:17:05 UTC+3 tarihinde Ayhan Celik yazdı:
Reply all
Reply to author
Forward
0 new messages