I got a null value when data is present at the location in sqlite
Cursor c = db.query("SELECT * FROM table WHERE id " = '" + value + "'", null);
if(c !=null && c.moveToFirst())
{
     temp = c.getString(c.getColumnIndex(b1));
     Log.v(TAG, ""+temp);
}
The log file is
------------
Tag   Text
-------------
class null 
------------- 
The value is present but i get null can it be sorted out.
if cursor is null it obviously should skip the if statement but it executes the statement.
For some other values i get the answer
Tag    Text
-----------
class  100
----------
class  86
Thank you for the time and response given
 
    