publi c логическая проверкаWhetherDataPresentorNot (String question_id, String selected_option, String session_id) {
Log.d(" CHECKDATA ", "Question Id" + question_id);
Log.d("CHECKDATA ", "Selected_option " + selected_option);
Log.d("CHECKDATA", "Session ID " + session_id);
db = this.getReadableDatabase();
@SuppressLint("Recycle") Cursor cursor = db.query(TABLE_TEST_START, new String [] {QUESTION_ID_TEST_START, SELECTED_OPTION_TEST_START,TEST_START_ID}, "question_id_test_start = ? AND selected_option_test_start = ? AND test_start_id = ?",
new String[] { question_id, selected_option, session_id },
null,
null,
null);
if (cursor.moveToFirst()) {
Log.d("CHECKDATA ", "DATA IS PRESENT");
return true;
}else{
Log.d("CHECKDATA ","DATA NOT PRESENT");
return false;
}
}