Android Question file.copy to dirinternal not working?


Active Member
Licensed User

I'm trying to replace a file with a new version within the app, but I having some issue.
Unfiltered log shows nothing.

I have this:

'kvs.Initialize(File.DirInternal, "datastore3") '<---------- this doesn't work; kvs (a keyvaluestore object) remains empty
kvs.Initialize(File.DirInternalCache, "datastore3") '<------ this does wok.

kvs is initialized from dirinternal at the starter object... could it be datastore3 not being overwritten because it's in use?

Thank you!


Active Member
Licensed User
Hi Erel, Thank you for your answer!

No; I wasn't closing the kvs. I didn't know/remember that I should do that first.

Thank you very much, now it works!
Upvote 0