SQLiteDatabase myDatabase = openOrCreateDatabase("SMDB", MODE_PRIVATE, null);
Cursor c = myDatabase.rawQuery("SELECT PName FROM tbl_staff WHERE PMajor LIKE '%" + selectedItemFromSpin + "%'", null);
c.moveToFirst();
This is my code, now this code works fine when I pass an English Word for selectedItemFromSpin variable but when I send a non English word like "نوشته مثال" then app crashes and says a message with button named force to quit.
I appreciate if anyone helps.