The real solution is: study 
http://developer.android.com/guide/topics/fundamentals.html,
especially the parts on lifecycles of activities, services and
broadcast receivers (http://developer.android.com/guide/topics/
fundamentals.html#lcycles). Then take into account what Dianne said
(that there is no such broadcast). After studying that section, you
will more likely come up with the real solution to your problem. It
may help, for example, to notice that though there is no "app started"
broadcast, you can tell when your own applications/activities lose the
foreground or become invisible. This is almost the same information,
since launching another app is what causes yours to lose foreground
(device going to sleep will do this too). So you may be able to get
close enough by waiting for onPause() and onStop() events, overriding
these methods.

On Aug 8, 11:09 pm, manoj <[email protected]> wrote:
> Hi All,
>
> I have one question.
>
> I want to receive a broadcast receiver whenever any app is started.
>
> for example:
> I have an app which has the broadcast receiver which listens for the
> app started event .
>
> I installed this app on the device.
>
> Now I have opened the Phone or Contacts app. Now my app which is
> listening for this kind of event(app opened or started) has to be
> invoked.
>
> can any one tell me the solution?
>
> Thanks,
> Manoj.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to