Mike Lanin wrote: > Hi, guys! > I want to use MapActivity in my app, but in the line mapView = > (MapView) findViewById(R.id.mapView); the error "cannot cast from View > to mapView" occurs. I also tried to copy "Hello, mapView" example, but > it gives the same. > Does anyone have the same problem?
Do you have the <uses-library> element in your manifest? http://code.google.com/android/add-ons/google-apis/maps-overview.html#useslibrary -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---