Tutorial: Android SQLite CRUD App

Tutorials with advanced 'difficulty' and more Lines of Code.

Tutorial: Android SQLite CRUD App

Postby openmobster » Tue Mar 22, 2011 6:00 pm

The tutorial covers how to use the SQLite database for local storage in an Android App. You can download the source code to learn more. Enjoy!!!

Tutorial Link: http://code.google.com/p/openmobster/wiki/SQLiteCRUD
openmobster
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sat Oct 30, 2010 9:09 pm

Top

Re: Tutorial: Android SQLite CRUD App

Postby waqasAhmed » Sat Apr 02, 2011 4:43 pm

Thanks .. Very useful
waqasAhmed
Freshman
Freshman
 
Posts: 2
Joined: Sat Sep 25, 2010 11:26 am

Re: Tutorial: Android SQLite CRUD App

Postby soumen4code » Wed Apr 13, 2011 5:36 pm

But when I try your application to store incoming sms details it is not working....Can you post some resource about that.
soumen4code
Developer
Developer
 
Posts: 46
Joined: Wed Mar 16, 2011 4:21 pm

Re: Tutorial: Android SQLite CRUD App

Postby Kittoes » Wed Apr 27, 2011 10:21 pm

Just an FYI: the code snippet-

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. //Open a SQLite Database
  2. db = context.openOrCreateDatabase("crm.db", SQLiteDatabase.CREATE_IF_NECESSARY, null);
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


The second argument actually has nothing to do with SQLite. It's an integer flag that tells Android whether your file should be private or not.

I believe it's:
0 = MODE_PRIVATE
1 = MODE_WORLD_READABLE
2 = MODE_WORLD_WRITABLE
Kittoes
Freshman
Freshman
 
Posts: 2
Joined: Wed Apr 27, 2011 9:14 pm
Location: Grand Prairie, TX

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests