Need SQL tutorial

Cableguy

Expert
Licensed User
Longtime User
Any one available?
 

tremara1

Active Member
Licensed User
Longtime User
sql sample test

I copied the code into a project added a ref to sql lib and then changed the dir to file.DirAssets but the app is unable to open the db. Does it have to be on the DirDefaultExternal directory?

Trevor
Ballarat
Victoria
Australia
 
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
It's Basic4ppc code, is it ok with Basic4Android?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Hi susu,

It is a B4Android code and NOT a B4PPC code ?

Attached a slightly modified version of Erel's code that shows the query in a ListView view rather than in the Log file. I tested it with the emulator.

Best regards.
 

Attachments

  • TestSQL.zip
    6 KB · Views: 552
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
Thanks Klaus for your very useful code :D
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Thanks all for the help...second Android project on the comming:sign0060:
 
Upvote 0

tremara1

Active Member
Licensed User
Longtime User
sql not playing nice

I am still having an issue getting this sql test to work. I have used the code as is and still get a message that the "unable to open database" message in the sql initialise line. The sql library version I have is dated 31/10/2010. Sorry to be a pest but I use sql a lot.....thanks

Trevor
Ballarat
Victoria
Australia
 
Upvote 0

tremara1

Active Member
Licensed User
Longtime User
Steep learning curve

My problem was I had not set up the sd card in the emulator properly...I had not used it before so had not noticed. Sorry to have bothered you...

Trevor
Ballarat
Australia
 
Upvote 0
Top