I think your query is wrong
String queryz = "SELECT " + "," + MySQLiteHelper.COLUMN_THREADID
+ " FROM " + MySQLiteHelper.TABLE_NAME
+ " WHERE " + MySQLiteHelper.COLUMN_ID + "=" + ide;
Expected Output "SELECT , COLUMN FROM TABLE WHERE COLUMNID = VALUE " A WRONG QUERY
Should be this
String queryz = "SELECT " + MySQLiteHelper.COLUMN_THREADID
+ " FROM " + MySQLiteHelper.TABLE_NAME
+ " WHERE " + MySQLiteHelper.COLUMN_ID + "=" + ide;
Expected Output "SELECT COLUMN FROM TABLE WHERE COLUMNID = VALUE "
Check for your database!=null and then database.isOpen() and if executes the
check your cursor!= null and then cursor.getCount() > 0