You do need to get a maps API key, but that is not the reason for the
Force Close. An invalid apiKey just results in an empty map view.
There should be a stack trace that indicates why the application is
closing.
Also the example in HelloMapView has outdated instructions to create
the zoom controls. You can get rid of the zoomview LinearLayout and
just call setBuiltInZoomControls() like this -
MapView mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---