I've already read your posts on androidguys. Great posts, but didn't
help in what I want to accomplish. Thanks anyways.
I'm wondering if it would be possible to edit some System files to
accomplish what I need.... modify the EditText class...
by the way, sorry for the the double post, got a bit anxious :)
--Z
On Jul 8, 1:45 pm, "Mark Murphy" <[EMAIL PROTECTED]> wrote:
> > Practical application: Suppose I want a dialog box (or any other code)
> > to run when any text box (EditText) gets the focus.
>
> I'm not sure that's possible.
>
> > 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?
>
> Custom Intents have to be manually sent. If you invent an Intent out of
> whole cloth, nothing in Android will know to send it except perhaps your
> own code.
>
> I cover custom Intents in a two-part blog post series on AndroidGuys, with
> the second post being probably more in line with what you need:
>
> http://androidguys.com/2008/07/03/gettin%E2%80%99-on-the-message-bus-...
>
> So, you can use custom Intents to, say, have Application X alert
> Application Y about something, or have Service M notify Activity N about
> something. But I'm not aware of any spot in the code to say "whenever an
> EditText anywhere gets the focus, broadcast this-and-so Intent".
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ -- Available Now!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---