Hi Jason, Using a try catch I've found that it was just a simple nullpointer exception on the mapView. Which brings me to the next problem. How come my mapView is null?
I'm simply doing as the hello map tutorial says.. :( On May 19, 6:07 am, Jason Parekh <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

