As I cannot comment because of my low rating I can surely answer your Question in the comment: The getWritableDatabase() functions gives you a - as the name says - writable Database. All Tables part of the database are now ready to be used For example: public Cursor getStuff(String string) { return db. Query(true, TABLE_1, new String { KEY_COLUMN1, KEY_COLUMN1, KEY_COLUMN1 }, KEY_ID + " =?", new String { string }, null, null, null, null); } Everything written in Capital letters are String constants defined in my class - because I'm lazy.
If you want to query a different Table just replace TABLE_1 with the Table you want.
As I cannot comment because of my low rating I can surely answer your Question in the comment: The . GetWritableDatabase(); functions gives you a - as the name says - writable Database. All Tables part of the database are now ready to be used For example: public Cursor getStuff(String string) { return db.
Query(true, TABLE_1, new String { KEY_COLUMN1, KEY_COLUMN1, KEY_COLUMN1 }, KEY_ID + " =? ", new String { string }, null, null, null, null); } Everything written in Capital letters are String constants defined in my class - because I'm lazy. If you want to query a different Table just replace TABLE_1 with the Table you want.
Hi there I want to create two distinct tables in a database. I have created the following DBAdapter class to implement the database operations, however when I call the insertCreditcard() method the values are not inserted. I wonder if the second table is even being created.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.