Options
1) possible. Content provider is also a component of android, so we can use intent to start it.
2) not possible. Using intent you can't trigger a content provider.
3) option 2 is correct because, we use content resolver to communicate with content provider
4)none
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
Options
1) it is part android.graphics.drawable.package
2) it is part of view package
3)it is part of 3D graphics library (open GLES)
4)it is part of kernal
What is the life cycle of a content provider?
Options
1)A content provider's onCreate() funcation will be called every time if some client calls providers funcations using content resolver.
2) A content provider's onCreate() funcation will be called when first time if some client calls providers funcations using content resolver.
3) All the content providers will be created (onCreate()) after phone has booted first time
4) None
Options
1) Implement your own custom View by extenting View class, and then implement onDraw method in it.
2) Take any UI control like ImageView, and draw image using canvas.
3) it is not possible to directly touch Canvas.
4) both option 1 and 2 are right