Android Question KeyValueStore internally?

swabygw

Active Member
Licensed User
Longtime User
I wanted to confirm my understanding of how this feature works. I am using it in my application with the following declaration/initialization:

Private KVS As KeyValueStore
KVS.Initialize(File.DirDefaultExternal, "datastore")

If I understand correctly...
1) These values are stored in SQLite file, which is, essentially, a text file...is this correct?
2) The file with the values is stored on the external SD card (I'm assuming so because it would only work when I ran my emulator with SD storage space defined)...is this correct?

So, here's my question: suppose the user of the application isn't using an external SD card - is it possible to use the KeyValueStore and store the values internally on the phone/device? If so, what would the code look like?

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
1) These values are stored in SQLite file, which is, essentially, a text file...is this correct?
yes
2) The file with the values is stored on the external SD card (I'm assuming so because it would only work when I ran my emulator with SD storage space defined)...is this correct?
DirDefaultExternal and DirInternal are BOTH on the internal - not removeable - SDCard.

An ADDITIONAL SDCard (a real EXTERNAL) will get another path.

the values internally on the phone/device? If so, what would the code look like?
Use DirInternal oder DirDefaultExternal.... DirInterla can only be uses by your own app.
 
Upvote 0

swabygw

Active Member
Licensed User
Longtime User
Weil ich bin Amerikaner. Ich bin in Berlin seit sechs Monate zu Deutsche lernen. (...jetzt B1...)
 
Upvote 0
Top