I have a custom view that needs a reference to the activity that
created it.

Dianne Hackborn said in another thread:
>Give your view a reference to the activity (or a Java interface it implements) 
>and call back through that.
>Much much MUCH more efficient than sending a broadcast.
>See all of the standard view and view subclass callbacks for examples.

Sadly, I dont understand her reply and cant find any decent examples
that show how to do this.

Can anyone point me to an example or post one here?

Thanks.


--~--~---------~--~----~------------~-------~--~----~
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to