Can 'Shelve' and 'dbm' not be used in Android? #2795
|
Does Toga have its own caching API? |
Replies: 3 comments 7 replies
|
I tried using JSON, but it was not successful. |
|
No, Toga doesn't have a caching API. Toga is a GUI framework; it leaves tasks that aren't related to GUIs, or device hardware related to GUIs (such as GPS), to other libraries. And yes - you can use shelve, dbm, JSON, SQLite, or any other builtin data storage library with a Beeware/Toga app on Android. If you're having difficulties, the issue is almost certainly the specification of the filesystem location that you're attempting to use to save the file; however, without details, we can't provide any advice on how to fix problems that you may be having. |
|
--------- beginning of crash import toga class testoga(toga.App): def main(): |
I have given you an example. Instead of calling:
call: