resource on Android #2772
-
I am working on Windows but my goal is to create an apk for android, running the tutorial as an android worked fine, even on my real device.
After unzipping the apk, my atlas.db file in not into the apk, do I have to declare personnal files somewhere for briefcase to find them ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You don't need to explicitly declare data files as part of packaging the app - any file that is a folder named in your sources (or a subfolder of those folders) will be copied into your app bundle. The If you're having difficulty reading a database file, that's likely because the code hasn't been updated and the database file hasn't been includes as part of the app. Re-running |
Beta Was this translation helpful? Give feedback.
You don't need to explicitly declare data files as part of packaging the app - any file that is a folder named in your sources (or a subfolder of those folders) will be copied into your app bundle.
The
toga.App.app.paths.app
location won't be literally the same path on Windows and Android because the app will be in different locations - but it will be functionally the same, relative to the location of the app.If you're having difficulty reading a database file, that's likely because the code hasn't been updated and the database file hasn't been includes as part of the app. Re-running
briefcase update
(orbriefcase run -u
) should fix that problem.