Hey Tim, Just those two lines of code should work--could you clarify what you mean by "set the defaultzoomcontrols"? The zoom controls should appear as soon as you pan the map.
Also, including the stack trace from adb logcat will likely be enough to debug this problem. jason On Mon, May 18, 2009 at 4:33 AM, Tim <[email protected]> wrote: > > Hi! > > I'm not really sure if this is allowed, but since I didn't get any > response in the beginners groups (http://groups.google.com/group/ > android-beginners/browse_thread/thread/ > 9599dfcb4fbca515/0614c7895fe25481), I thought I'd give it a go here: > > I've started a new google android project and I want to add zoom > controls to my map. Supposedly that should work like this: > > mapView = (MapView) findViewById(R.id.mapview); > mapView.setBuiltInZoomControls(true); > > Unfortunately that doesn't work. I do have the mapView, but when I try > to set the defaulzoomcontrols it gives me errors. When I try to debug > Eclipse tell me: > > Source not found. > > The weird thing is thought, when I comment out the zoomcontrols, > debugging works fine. So it seems my environment is set up properly. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

