MyObjectBox
file) for each module. Just make sure to pass different database names when building your BoxStore.extractNativeLibs="false"
to your AndroidManifest.xml
as recommended by Google. This turns off compression. However, this allows Google Play to optimally compress APKs before downloading them to each device (see download size above) and reduces the size of your app updates (on Android 6.0 or newer). Read this Android developers post for details. It also avoids issues that might occur when extracting the libraries.AndroidManifest.xml
:initialDbFile()
method when building BoxStore. Let us know if this is useful!data.mdb
and is typically located in a subdirectory called objectbox
(or any name you passed to BoxStoreBuilder). On Android, the DB file is located inside the app’s files directory inside objectbox/objectbox/
. Or objectbox/<yourname>
if you assigned the custom name <yourname>
using BoxStoreBuilder.close()
the BoxStore
and then delete the database files using BoxStore.deleteAllFiles(objectBoxDirectory)
. To avoid having to close BoxStore
delete files before building it, e.g. during app start-up.BoxStore.removeAllObjects()
does not reclaim disk space. It keeps the allocated disk space so it returns fast and to avoid the performance hit of having to allocate the same disk space when data is put again.