That said, there is no intent that gets broadcast when a text view gets focus. The inner workings of an application are opaque to other applications; interactions across applications happen through explicit operations such as startActivity(), sendBroadcast(), bindService(), etc. This is for both performance and security reasons.
On Jul 8, 10:42 am, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > 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 > athttp://code.google.com/android/reference/android/R.styleable.html#And... > . > > 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 -~----------~----~----~----~------~----~------~--~---