Android Question KeyValueStore file export and import

giggetto71

Active Member
Licensed User
Longtime User
Hi,
I am happily using KVS for one app to store all the app configuration under file.internal

B4X:
Starter.kvs.Initialize(File.DirInternal, "AppConffig")

I would like to allow the user to copy that file on a chosen folder on the phone and then allow him to load it (selecting it from the user chosen folder) and copying it in File.internal so that a clean installation (zero config) could restore immediately all the config saved from a previous fully configured installation.
I tried to search the forum but could not find a definite answer. thanks!
 

Lucas Siqueira

Active Member
Licensed User
Longtime User
use


or

 
Upvote 0

giggetto71

Active Member
Licensed User
Longtime User
thanks. it worked. at the end it's just a file...I was just not sure because some files are not shown in the app folder when you browse it from usb/windows..but the file is there and copying it and restoring it worked perfectly. thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…