Android- How to save a image DCIM folder

Visto 636 veces
Saltar al primer mensaje no leído

Ayhan Celik

no leída,
9 jul 2019, 6:04:019/7/19
a Kivy users support
from kivy.app import platform

if platform() == 'android':
    DATA_FOLDER = os.getenv('EXTERNAL_STORAGE') or os.path.expanduser("~")

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

KivyMD

no leída,
9 jul 2019, 6:21:379/7/19
a kivy-...@googlegroups.com
def get_path_to_dcim():
from os.path import dirname, join
from kivy.app import App

return join(dirname(App.get_running_app()._user_data_dir), 'DCIM')

вт, 9 июл. 2019 г. в 13:04, Ayhan Celik <ayhan...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/22224c68-5ab4-4fd8-b637-a7523f66d789%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ayhan Celik

no leída,
9 jul 2019, 9:46:389/7/19
a kivy-...@googlegroups.com

 

kivy launcher also works but it doesn't work when I make apk Do I need a change in buildozer spect file?

KivyMD

no leída,
9 jul 2019, 10:30:069/7/19
a kivy-...@googlegroups.com
def get_path_to_dcim():
from os.path import dirname, join
from kivy.app import App

    path_to_dcim = join(dirname(App.get_running_app()._user_data_dir), 'DCIM')
print(f'DCIM PATH - {path_to_dcim}')
return path_to_dcim

adb logcat | grep python

вт, 9 июл. 2019 г. в 16:46, Ayhan Celik <ayhan...@gmail.com>:
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos