i get a nullPointer exception when doing
Using java Syntax Highlighting
- MapController mc = myMapView.getController();
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
within my MapActivity;
Using java Syntax Highlighting
- setContentView(R.layout.mymap);
- myMapView = (MapView) findViewById(R.id.mapview);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
my XML:
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <Button android:id="@+id/cmd_submit"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Show me the Route!"/>
- <view id="@+id/mapview"
- class="com.google.android.maps.MapView"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_weight="1" />
- </LinearLayout>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4

