Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Go through the Below links. You will find good examples:</p> <ol> <li><a href="http://saigeethamn.blogspot.in/2009/10/android-developer-tutorial-part-12.html" rel="nofollow">http://saigeethamn.blogspot.in/2009/10/android-developer-tutorial-part-12.html</a></li> <li><a href="http://android-er.blogspot.in/2011/06/simple-example-using-androids-sqlite_02.html" rel="nofollow">http://android-er.blogspot.in/2011/06/simple-example-using-androids-sqlite_02.html</a></li> <li><a href="http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android" rel="nofollow">http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android</a></li> </ol> <p>And for good SQL tutorial go through this link: <a href="http://www.vogella.com/articles/AndroidSQLite/article.html" rel="nofollow">http://www.vogella.com/articles/AndroidSQLite/article.html</a></p> <p>Example for DBInsert Method:</p> <p>public Marks addMarks(Marks comment) {</p> <pre><code> ContentValues values = new ContentValues(); values.put(MarksDB.MARKS_StdNo, comment.getStdNo()); values.put(MarksDB.MARKS_1, comment.getSub_1()); values.put(MarksDB.MARKS_2, comment.getSub_2()); values.put(MarksDB.MARKS_3, comment.getSub_3()); values.put(MarksDB.MARKS_4, comment.getSub_4()); values.put(MarksDB.MARKS_5, comment.getSub_5()); long insertId = database.insert(MarksDB.TABLE_MARKS, null, values); </code></pre> <p>While insertion and deletion from and to the db, keep a modal class get the object from the modal class where you get and set the attributes. Then either insert the current object of the Modal class. Thats a good and a non confusing way for DBTransactions.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload