Single quotes in sqlite on android -


itemprop = "text">

I'm getting value from WebSwari Some of my values ​​come with single quotation marks Support this sqlite single quote like this sample not doing. So I change them with double quotation marks. When I get the value from DB then I am not able to parse the value. I did not get the parser exception well Can anyone tell me how to do this?

Instead of a single quote for my double quote, my code is

  stockservicevalue = stockservicevalue.replaceAll ("  
  string sql = "select", "from myquest;";   

log:

  03-28 19: 02: 36.309: Warning / system. er (344): org.apache .harmony.xml.ExpatParser $ ParseException: line 1, column 50437: well went not formed (invalid token) 03-28 19: 02: 36.321: Warne / system. er (344): at org.apache.harmony.xml .ExpatParser.parseFragment (ExpatParser.java:492) 03-28 19: 02: 36.330: Warne / system. er (344): at org.apache. Harmony.xml.ExpatParser.parseDocument (ExpatParser.java:477) 03- 28 19 : 02: 36.340: Warne / system. Er (344): at org.apache.harmony.xml.ExpatReader.parse (ExpatReader.java:317) 03-28 19: 02: 36.380: Warne / Sistm.aarar (344) : at org.apache.harmony.xml.ExpatReader.parse (ExpatReader.java .7373) 03-28 19: 02: 36.389: Warne / system. er (344): co M.inquest.SaxPortfolioDocument.getEventsFromAnXML (SaxPortfolioDocument.java : 13) 03-28 19: 02: 36.411: Warns / systems Er (344): $ PortFolioTask.doInBackground (PortfolioActivity.java:1271) 03 -28 1 9: 02: 36.420: Warns / Systems on com.inquest.PortfolioActivity. ARR (344): $ PortFolioTask.doInBackground on com.inquest.PortfolioActivity (Portfolioaktiviakjawai) 03-28 19: 02: 36.430: Warne / system. Er (344): At android.os.AsyncTask $ 2.call (AsyncTask.java:185) 03-28 19: 02: 36.430: Warne / System. Er (344): at java.util.concurrent.FutureTask $ Sync.innerRun (Future Tasks .java: 305) 03-28 19: 02: 36.440: Warns / Systems. Er (344): java.util.concurrent.FutureTask.run (FutureTask.java:137) 03-28 19: 02: 36.479: Warning / Systems Er (344): java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1068) 03-28 19: 02: 36.500: Warns / Systems Er (344): at java.util.concurrent. Threadpool expeller $ worker.ron (Threadpool Exporter. JavaTatine) 03-28 19: 02: 36.510: Warne / System. Er (344): On Java. On. Thread.Ran (Thread.Java 10 9) 03-28 19: 02: 36.84 0: Warning / Input Manager / Service (58): The window is already focused on concentrating: com.android.internal .view.IInputMethodClient $ Stub $ Proxy @ 46dfec78   

Thank you

  stockervicevalue = stockservicevalue.replaceAll ("'", "\'" ");    

Comments