[android-developers] Re: order by clause

2010-11-22 Thread pramod.deore
I have still the problem. I read at

Re: [android-developers] Re: order by clause

2010-11-22 Thread ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ
I made this for myself and it works I created a class named fro example dbFile public class DbFile { static Cursor getAll(SQLiteDatabase db) { return(db.rawQuery(SELECT * FROM TableName ORDER BY ColumnName, null)); } } and from my activity class i declare Cursor model=null; and on create i call:

[android-developers] Re: order by clause

2010-11-22 Thread pramod.deore
Hi, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ yes it solves my problem. But I don't understand what earlier query not work. On Nov 22, 4:28 pm, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com wrote: I made this for myself and it works I created a class named fro example dbFile public class DbFile  { static Cursor

Re: [android-developers] Re: order by clause

2010-11-22 Thread ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ
If you work on Eclipse try to read carefully the Console and logCat window, maybe there you'll find the answer Στις 22 Νοεμβρίου 2010 1:38 μ.μ., ο χρήστης pramod.deore deore.pramo...@gmail.com έγραψε: Hi, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ yes it solves my problem. But I don't understand what earlier query

[android-developers] Re: order by clause

2010-11-22 Thread pramod.deore
Ok, Thanks for your help. On Nov 22, 4:54 pm, ΠΑΣΧΑΛΗΣ ΠΛΙΑΧΑΣ plia...@gmail.com wrote: If you work on Eclipse try to read carefully the Console and logCat window, maybe there you'll find the answer Στις 22 Νοεμβρίου 2010 1:38 μ.μ., ο χρήστης pramod.deore deore.pramo...@gmail.com έγραψε:

[android-developers] Re: order by clause

2010-11-21 Thread pramod.deore
I had also tried as Cursor c = sampleDB.query(SWITCH_TABLE_NAME, new String[] {SwitchID,SwitchName,RoomID,RoomName}, RoomID= ,null,null,null, ASC); But still it is not working.Any clue? On Nov 22, 9:13 am, pramod.deore deore.pramo...@gmail.com wrote: Hi , I have a