String sqlqueries="select related_Question from relatedQuestion where word= 'بدي'"; String r=db.fitshData(sqlqueries); public String fitshData(String sql){ SQLiteDatabase db = this.getReadableDatabase(); // db.execSQL(sql); Cursor cursor = db.rawQuery(sql, null); int col1 =cursor.getColumnIndex("related_Question"); String value = cursor.getString(col1); Log.v("message","vlaue:"+value+""); cursor.close(); return value; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)