Android Programming and Technical Programming Technical

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

Read Solution (Total 2)

Android Other Question

Trigger broadcast receiver only if my activity is in memory, else it should not get triggered, how to do it?

Options
1) Send broadcast only when your activity is alive
2) Register a dynamic receiver in that Activity
3) Register a static receiver in manifest file
4) It is not possible to achieve
What is the purpose of SQLiteOpentHelper?
Options
1) A helper class to manage database creation, version management, and inserting/modifying/deleting/updating table data without loosing state of the previous data.
2)A helper class to insert/update/delete data into tables with loosing state of the previous data.
3)A helper class to manage database creation, upgrading and version management without loosing state of the previous data.
4) all of the above