On Thu, Jul 7, 2011 at 1:24 PM, Raghav Sood <raghavs...@gmail.com> wrote:

> P.S. If I have a method in my Activity to display a toast can I safely call
> it from the Overlay class?


Well, sure, with a valid reference to the Activity. But injecting a
dependency on the Activity into your Overlay to display a toast does not
seem like a great idea.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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