If you don't want to display the activity, just use the Theme.NoDisplay
theme on your activity.

On Thu, Mar 18, 2010 at 7:59 AM, mike <kiranbollepa...@gmail.com> wrote:

> hai every one,
>
> i have a query.
> how can i write a Broadcast Receiver that will be invoked when user
> clicks on any application icon.
>
> i tried by writing
> <receiver android:name = "myreceiver">
> <intent-filter>
> <action android:name = "android.intent.action.MAIN">
> </intent-filter>
> </receiver>
> but it is not called.
>
>
> i tried,
> by using Packagemanager i will get ApplicationInfo from that i can
> know all the application starting activity name and package names. i
> thought i can use them to registerReceiver
> and my receiver will listen by its launching activity and package
> name.
> but i strucked.. i am unable to do that.. i think i lost the way..
> please guide me...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
> To unsubscribe from this group, send email to android-beginners+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to