hi, i'm new developer on Android. When i use this line i get 'cannot cast from View to MapView ' error.
mapView = (MapView) findViewById(R.id.mapview); in R.java public static final class id { public static final int mainlayout=0x7f050000; public static final int mapview=0x7f050001; public static final int zoomview=0x7f050002; } in main.xml <com.google.android.maps.MapView android:id="@+id/mapview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true" android:apiKey="" /> i look this mapview application in tutorial in developer.android.com http://developer.android.com/guide/tutorials/views/hello-mapview.html How can i fix this problem? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---