I am working on one application in which I have to save the data in database and retrieve data..up to that its okay but when i retrieve data using particular name which already stores in database and if that name is like “crown`s” then it gives me force close..
so guys help me how can i stores name which contained special character and retrieve using the same…
i m using function of database to retrieve that is :
{
String name_search=edittext.getText().toString();
Cursor c=DB.rawQuery("select NAME from Category where NAME='"+name_search+"'",null);
}
thanks in advance….
please help me as eaerly as possible
Try to use of the
selectionArgsparameter to solve your issue