views:

60

answers:

0

It is giving error at runtime : Application stopped unexpectedly - Am I going wrong anywhere ?
Please help. Any help is appreciable.

public Cursor getdata(String passTask)
{
//Cursor cursor = this.db.query(TABLE_NAME, new String[] { "totalHr" },
// "where task = ", passTask ,"", "", "");
//return cursor;

String p_query = "select totalHr from table1 where task = ?";
Cursor cursor = this.db.rawQuery(p_query, new String[] {passTask} );
return cursor;
}


LogCat Output -

![alt text][1]

[1]: http://i.imgur.com/AqQ58.jpgenter code here