06-13-2017 06:43 AM
We are interesting to distribute a geopackage database inside the App.
We done the next steps:
After this steps we have an apk application.
Our questions are:
Solved! Go to Solution.
06-16-2017 01:38 AM
yes it's possible.
If you add the file to the assets, it should be embedded inside of the APK.
The problem is reading the file. In the configuration there are relative paths, to:
Providing absolute paths in the configuration isn't supported.
What you can do is. Check on the app start, if the file is present in the target directory. If it isn't present, move it from your asset directory to the target directory.
06-16-2017 01:43 AM
In the next release of the SDK we will add GeoPackage synchronization. If there is synchronization required and configured. There will be a syncronize button visible. Synchronize button triggers GeoPackage download if necessary.
If you want to avoid app upload, maybe a simple service exposing your GeoPackage would work. The app checks on app start if the data is present, if not it retreives it from the service.