I have created a DB in sqlite and a table in this DB. now i want to add one more table in this table.
But am not getting why this new table is not being in DB.
Please suggest.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out these two links. Sample code is in the second one:
http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html
http://code.google.com/p/android-notes/source/browse/trunk/src/com/bitsetters/android/notes/DBHelper.java?r=10
You should use a helper class to access the DB and these links will help. If you do it correctly from the beginning, it will save you a lot of trouble when upgrading later down the road. Hope it helps.
Also, in the second link, the DBHelper.java, you can see the creation strings at the beginning of the file in case you are unaware of what to look for.