I am having SQLite DB table with four fields. I am entering mobile number starting with 0 (For example: 09987654321). I have stored mobile number as String value. When I am trying to retrieve the value it returns without 0 (Like 9987654321).
I have retrieved the String as,
String mob=cursor.getString(cursor.getColumnIndex("Mobileno"));
I have checked the table and the value is correctly inserted with 0. Why it not returning without 0 while retrieving?
Thanks in Advance.
Aucun commentaire:
Enregistrer un commentaire