I am comparatively new to android programming and especially corona… pls help
This is the error I am getting when the app installed and ran on my device. The app runs perfectly in the simulator. I doubt that the database file is not copied onto the device or not in the correct path. I would like to know where should and how should I copy the database file for my app…
My database coding lines are as follows:
…
…
local path = system.pathForFile( “gContacts.db”, system.DocumentsDirectory )
db = sqlite3.open( path )
local people = {} – Begins empty
local nameList = {}
local tablesetup = [[CREATE TABLE IF NOT EXISTS civilf (Index INTEGER PRIMARY KEY, Name, Phone, email);]]
print(tablesetup)
db:exec( tablesetup )
for row in db:nrows(“SELECT * FROM civilf”) do
print( "Row " … row.Index )
…
…
Thanks in advance