Android Question Install database on the internal memory

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I have a tablet and I want to install an app that I created.
This app uses a sqlite database.
The tablet does not have external memory, only has internal memory.
When I try to install the app I get a message that I can not write to it and will not let me install it.
However, if I install the app without copying the database then it installs fine.
How I can install the app, the database and other files?

Thanks and regards.
 

barx

Well-Known Member
Licensed User
Longtime User
Where and how are you copying the database?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hey, it was a false alarm, the sd card was faulty, I've changed and everything works fine.

thank you very much
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
like this u can save data to internal storage
B4X:
Dim Writer1 As TextWriter
Writer1.Initialize(File.OpenOutput(File.DirInternal, "newlist.txt", False))
Writer1.WriteLine("1")
Writer1.Close

like this u can save a comlete list to internal storage
B4X:
File.WriteList(File.DirInternal, "ll1.txt", horl1)

read data:

read from file
B4X:
Dim Reader5 As TextReader
Reader5.Initialize(File.OpenInput(File.DirInternal, "sg.txt"))
        kerenminmenu = Reader5.ReadLine
        kerenmaxmenu = Reader5.ReadLine
        dayopenmenu  = Reader5.ReadLine
        dayjumpmenu  = Reader5.ReadLine
        dayselmenu  = Reader5.ReadLine
        Reader5.close

load data to list
B4X:
dim shift1l as List
shift1l = File.ReadList(File.DirInternal, "shift1l.txt")
 
Upvote 0
Top