[android-developers] Re: Mapview deprecated

2009-08-28 Thread Zod
Hi! To achive the same functionality use this code instead: mapView = (MapView) findViewById(R.id.MapView); mapView.setBuiltInZoomControls(true); As a side effect you don't need to put the mapview in a relative layout with a view for the zoom controls. Just put the mapview anywhere in your

[android-developers] Re: Mapview deprecated

2009-08-28 Thread sweet
thanks for your answer Zod I've done what you say but there are an other problem but i can't find it with the debug mode. I think it's in this part of code: public void onCreate(Bundle savedInstanceState) { linearLayout = (LinearLayout) findViewById(R.id.zoomview); mapView =

[android-developers] Re: Mapview deprecated

2009-08-28 Thread sweet
I've done what you say mark but i've already the same error the mistake should not be here i will pass you the full code java: public class Map extends MapActivity { LinearLayout linearLayout; MapView mapView; ZoomControls mZoom; @Override public void

[android-developers] Re: Mapview deprecated

2009-08-28 Thread Mark Murphy
thanks for your answer Zod I've done what you say but there are an other problem but i can't find it with the debug mode. I think it's in this part of code: public void onCreate(Bundle savedInstanceState) { linearLayout = (LinearLayout) findViewById(R.id.zoomview); mapView =

[android-developers] Re: Mapview deprecated

2009-08-28 Thread Mark Murphy
I've done what you say mark Not completely. but i've already the same error the mistake should not be here i will pass you the full code java: public class Map extends MapActivity { LinearLayout linearLayout; MapView mapView; ZoomControls mZoom; You will note that

[android-developers] Re: Mapview deprecated

2009-08-28 Thread sweet
I found it thanks again for your help ^^ On 28 août, 13:53, sweet junkybr...@gmail.com wrote: Just an other question How can i make an other itemized to switch the view (satelite view to map view) ??? On 28 août, 13:39, sweet junkybr...@gmail.com wrote: It's work very well ^^ Thanks a

[android-developers] Re: Mapview deprecated

2009-08-28 Thread sweet
Just an other question How can i make an other itemized to switch the view (satelite view to map view) ??? On 28 août, 13:39, sweet junkybr...@gmail.com wrote: It's work very well ^^ Thanks a lot guys On 28 août, 12:14, Mark Murphy mmur...@commonsware.com wrote: I've done what you say

[android-developers] Re: Mapview deprecated

2009-08-28 Thread sweet
It's work very well ^^ Thanks a lot guys On 28 août, 12:14, Mark Murphy mmur...@commonsware.com wrote: I've done what you say mark Not completely. but i've already the same error the mistake should not be here i will pass you the full code java: public class Map extends