I am not sure if i am doing it right, but i do not see my Map when i start my Map application.
My main.xml looks like
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">
- <view class="com.google.android.maps.MapView"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_weight="1" />
- <EditText android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="enter address to search..."
- android:selectAllOnFocus="true"/>
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
and my MapActivity file is
Using java Syntax Highlighting
- public class BasicMappActivity extends MapActivity {
- private MapView myMapView;
- public void onCreate(Bundle icicle) {
- super.onCreate(icicle);
- myMapView = new MapView(this);
- Point p = new Point ((int)(40.692158 * 1000000),(int)(-74.042616*1000000));
- MapController mc = myMapView.getController();
- mc.animateTo(p);
- mc.zoomTo(20);
- setContentView(R.layout.main);
- myMapView.toggleSatellite();
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Am i missing anything here ?


.





