Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Welcome to the Mobikul blog how to manage the data in Offline mode(means no network connection).
There are some methods to store the data in offline. Like sharedPrefrences and Database.
But in this blog, we have going to show how to use a database using SQLite.
There is also a blog on the SQLite database previous blog.
Ok, if you read the previous blog then you have been got the knowledge about the SQLite basics like how to create the data and insert data into it.
First of all, create the ContentValues object:
ContentValues cVObj = new ContentValues(); cVObj.put("Name","Aman"); cVObj.put("Age","23"); 123 ContentValues cVObj = new ContentValues();cVObj.put("Name","Aman"); cVObj.put("Age","23");
Then simply use the update method:
myDB.update(TableName, cVObj, "empId="+id, null); 1 myDB.update(TableName, cVObj, "empId="+id, null);
That column will be updated.
It is very simple,
try { myDB.delete(TABLE_NAME, "empId="+Id, null); } catch(Exception e) { ... } 1234 try { myDB.delete(TABLE_NAME, "empId="+Id, null); }catch(Exception e) { ... }
Thanks for reading this blog.
Be updated, Stay Super.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Excellent work, fast, good quality and understood the brief perfectly! Quick responses developing the project and very good cooperation. I suggest to anyone.
Stathis Plakidas
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.