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 MapActivity {
> > LinearLayout linearLayout;
> > MapView mapView;
> > ZoomControls mZoom;
>
> You will note that mZoom is not initialized.
>
> > �...@override
> > public void onCreate(Bundle savedInstanceState) {
> > super.onCreate(savedInstanceState);
> > setContentView(R.layout.map);
> > linearLayout = (LinearLayout) findViewById(R.id.zoomview);
> > mapView = (MapView) findViewById(R.id.mapview);
> > mapView.setBuiltInZoomControls(true);
>
> You will note that mZoom is still not initialized.
>
> > linearLayout.addView(mZoom);
>
> This should blow up. Delete this line from your code.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Books:http://commonsware.com/books.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---