[android-developers] SQL simple selection - urgent help needed

2010-03-29 Thread Sonic
Hi all, I need urgent help with a simple selection I am having difficulty with. I am trying to return a value of a Double called startPosition, where trackName is equal to a name of a string. The query doesnt seem to be returning anything, here is the code from my DbAdapter. Java: public

Re: [android-developers] SQL simple selection - urgent help needed

2010-03-29 Thread rupesh sasne
Try following code snippet... it should work... public Cursor getStartLatitude(String trackname) throws SQLException { *String[] FROM = {KEY_ROWID3, KEY_TRACKNAME, KEY_STARTPOSITION, };* * **String[] param = {kingsav};* Cursor mCursor = mDb.query(true, DATABASE_TABLE3, *FROM*, *KEY_TRACKNAME + =