When your application is installed on the device the IntentReceivers
defined in your manifest file are registered with the system. Take a
look at the documentation for defining your IntentReceiver in the
manifest at 
http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestReceiver
.

You can (sort of) think of the system having a lookup table of all
IntentReceivers and the Intents they have declared they can handle.
When an Intent is broadcast, the system uses this table as a reference
to instantiate the right IntentReceiver.

Cheers,
Justin
Android Team @ Google

On Jul 8, 9:21 am, ZaNkY <[EMAIL PROTECTED]> wrote:
> I just recently got the SDK and have been playing around with it. It's
> pretty solid, even though it's not completed yet.
>
> I understand the basics of how Intents work, but I'm getting lost when
> it comes to defining custom intents.
>
> Practical application: Suppose I want a dialog box (or any other code)
> to run when any text box (EditText) gets the focus. This is an
> external EditText, so say, the browser. Putting aside Activities, I
> build an app that consists of only an IntentReceiver:
>
> IntentReceiver(receives a custom defined Intent)
> {...}
>
> How and where can I define the actual Intent? From my understanding,
> an IntentReceiver will start the app when it gets the Intent. But...
> where is the test done for whether a text box has the focus or not? If
> the application is not running, there is no opportunity for it to get
> DEFINED. is there?
>
> --Z
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to