Android Programming and Technical Programming Technical

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

Read Solution (Total 1)

Android Other Question

What is the time limit of a broadcast receiver, what will happen if it crosses that time limit?

Options
1) 2 sec
2) 5 sec
3) 10 sec
4) 15 sec
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