Priyanka G wrote:
> When I use MapView in place of ImageView, there is no compilation
> error, but the app never launches on emulator. I followed the example
> given on android developer website.
> 
> When I use ImageView, it asks me to cast the ImageView object before
> getZoomControls(). But it is of no use.
> 
> Why zoomcontrols work with mapview well, but not with imageview? As
> zoomcontrols, mapview and imageview all are subclasses of view, I
> expected the example of mapview to work with imageview as well. Is
> there anything that I am missing?

getZoomControls() is not implemented on View. Hence, that method is not
available on all subclasses of View.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

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

Reply via email to