beeware / toga

A Python native, OS native GUI toolkit.
https://toga.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
4.19k stars 656 forks source link

How to save an image on album(Android) #2610

Closed xi-yue-233 closed 1 month ago

xi-yue-233 commented 1 month ago

What is the problem or limitation you are having?

I have a program to generate some images on toga.path.data,how can I move or save them on album?

Describe the solution you'd like

save image on album

Describe alternatives you've considered

move move from data path to album

Additional context

No response

freakboy3742 commented 1 month ago

At present, Toga doesn't have any cross-platform support for photo libraries/albums.

Photo albums aren't implemented as directories of files; they're separate applications, and interacting with them requires using cross-app data sharing mechanisms, not simple "file open/file save" operations.

At present, if you want to use the photo library, you will need to use the native Android Photos API, using the Chaquopy bridging layer to access the Java APIs.

I've opened #2611 to provide a more complete description of this feature.