P peggjones Active Member Licensed User Longtime User Feb 24, 2016 #1 I have several apps that work quite happily on my Nexus 7 and Nexus 10. I have just bought a Nexus 9 - the apps will not write to or update my database on it. I get "attempt to write to read only database". The database is in "/storage/emulated/0/". I can update the database with no problem using SqlLiteManager. Anyone got any ideas
I have several apps that work quite happily on my Nexus 7 and Nexus 10. I have just bought a Nexus 9 - the apps will not write to or update my database on it. I get "attempt to write to read only database". The database is in "/storage/emulated/0/". I can update the database with no problem using SqlLiteManager. Anyone got any ideas
lemonisdead Well-Known Member Licensed User Longtime User Feb 24, 2016 #2 Unsure but could this, added to the Manifest file, help ? Code: Copy AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) Upvote 0
Unsure but could this, added to the Manifest file, help ? Code: Copy AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2016 #3 Can you post the line that initializes the database? Upvote 0
P peggjones Active Member Licensed User Longtime User Feb 24, 2016 #4 Erel said: Can you post the line that initializes the database? Click to expand... SQLDIR = "/storage/emulated/0/bossfolder" SQL.Initialize(SQLDIR, "Vocab.db",True) Upvote 0
Erel said: Can you post the line that initializes the database? Click to expand... SQLDIR = "/storage/emulated/0/bossfolder" SQL.Initialize(SQLDIR, "Vocab.db",True)
P peggjones Active Member Licensed User Longtime User Feb 24, 2016 #5 lemonisdead said: Unsure but could this, added to the Manifest file, help ? Code: Copy AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) Click to expand... Thanks but that is already there. Upvote 0
lemonisdead said: Unsure but could this, added to the Manifest file, help ? Code: Copy AddPermission(android.permission.WRITE_EXTERNAL_STORAGE) Click to expand... Thanks but that is already there.
lemonisdead Well-Known Member Licensed User Longtime User Feb 24, 2016 #6 Sorry. I have found something : http://stackoverflow.com/questions/...sqlite-file-write-operations-on-external-dirs Upvote 0
Sorry. I have found something : http://stackoverflow.com/questions/...sqlite-file-write-operations-on-external-dirs
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2016 #7 Why aren't you using File.DirRootExternal? Is this a sd card? Upvote 0
P peggjones Active Member Licensed User Longtime User Feb 24, 2016 #8 No it's not an Sd card Erel said: Why aren't you using File.DirRootExternal? Is this a sd card? Click to expand... Basically I'm doing it that way because I found it worked! I'm far from an expert! It's not an Sd card. Nexus devices don't take cards. Upvote 0
No it's not an Sd card Erel said: Why aren't you using File.DirRootExternal? Is this a sd card? Click to expand... Basically I'm doing it that way because I found it worked! I'm far from an expert! It's not an Sd card. Nexus devices don't take cards.
P peggjones Active Member Licensed User Longtime User Feb 24, 2016 #9 I have updated to Android 5.1.1 and the problem is resolved. Thanks to all for your help. Upvote 0