> Would you have to use instanceof to find out if the context was the > activity?
At least once in development, to confirm that your View's Context is an Activity. If you're concerned about the Context's underlying type changing -- and it's not an unreasonable concern -- then you're better served holding your own reference to the Activity. That's fairly cheap, and if you require an Activity in the constructor, you eliminate all doubt. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

