hi ! I am having problem with running a .kml file with a simple map
application. I run my app and it displays blank map view. then in ddms
i select the app process for debugging and load the kml file. It shows
list of latitudes and logitudes in the emulator control section. but
even i restart my app there is no change in map view. Otherwise it
shud display the exact route or some map on emulator. am i missing
something else? the code is really simple ....

================================

public class SampleMapActivity extends MapActivity {

        MapView                 myMapView               = null;

        MapController   myMC                    = null;

        GeoPoint                geoPoint                = null;

        double                  latitude                = 12.937875, longitude 
= 77.622313;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        myMapView = (MapView) findViewById(R.id.myGMap);
        geoPoint = new GeoPoint((int) (latitude * 1000000), (int)
(longitude * 1000000));
        myMapView.setSatellite(false);

        myMC = myMapView.getController();
        myMC.setCenter(geoPoint);
        myMC.setZoom(15);

        myMapView.setBuiltInZoomControls(true);
        myMapView.displayZoomControls(true);

    }
        @Override
        protected boolean isRouteDisplayed() {
                return false;
        }

==================================================

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to