Android Programming and Technical Programming Technical

How to upgrade database tables?

Options
1) Pass different version number in incremental order, and put all upgrading code in onUpgrade() of helper class.
2) Pass different version number in incremental order, and put all upgrading code in onCreate() of helper class.
3) Pass different version number in any order, and put all upgrading code in onUpgrade() of helper class.
4) Pass different version number is decremental order, and put all upgrading code in onUpgrade() of helper class.

Read Solution (Total 2)

Android Other Question

What is the difference between contentprovider and contentresolver?

Options
1) they are not at all related with each other
2) content provider is used to share private data with other applications, where as content-resolver communicates from client end with content provider.
3) content resolver is used to share private data with other applications, where as content-provider communicates from client end with content resolver.
4)content provider is used to store private data, where as content-resolver communicates from client end with content provider.
How to show SQLite Database table information in android application? What is the best way to do it?

Options
1) Use table layout with cursor
2) Use listView with cursor adapter
3) Use table layout with cursor adapter
4) use gridview with cursor adapter