Could you please add possibility to create database without Android Context #81
EMaksymenko
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
Hello, I don't think that passing a null context is an expected use case for obtaining a GeoPackageManager instance. Is there a reason why a context object cannot be passed? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Current implementation allows to open and use external database file via GeoPackageFactory.getManager(context = null)
But it is not possible to create new external database file via manager.createFile(), because internally it checks existence in metadata DB and adds external link to metadata DB after creation, which requires Android Context.
Could you please enhance logic inside manager.createFile() and skip Context dependent parts if Context is null.
Now as a workaround I have extracted minimum set of logic in the client application code, but it will be good to have the same behavior via manager when context is null:
Beta Was this translation helpful? Give feedback.
All reactions