Oh nm, typo=/ @Override protected void onResume(){ super.onRestart(); }
should be @Override protected void onResume(){ super.onResume(); } C.H. Bourke Floyd IV 2314 RIVER PARK CIR APT# 2114 Orlando, FL 32817 C: 321-527-9272 2008/9/21 Bourke Floyd <[EMAIL PROTECTED]> > I figured out the issue. I was overriding most of the basic functions > > @Override > protected void onStart() { > super.onStart(); > > } > > @Override > protected void onRestart(){ > super.onRestart(); > } > > @Override > protected void onResume(){ > super.onRestart(); > } > > @Override > protected void onPause(){ > super.onPause(); > > } > > @Override > protected void onStop(){ > super.onStop(); > } > > @Override > protected void onDestroy(){ > super.onDestroy(); > } > > and for some reason I think it was bypassing some normal startup processes > in the MapActivity . I'm not a java developer, but it seems strange that I > can' t override these functions as long as I call their super before I do > anything. if you want to recreate the situation you can use 김병주 code above > and add these overrides. It will load the MapView, but not any of the > content. > > > C.H. Bourke Floyd IV > > > > On Sun, Sep 21, 2008 at 12:32 AM, 김병주 <[EMAIL PROTECTED]> wrote: > >> I've got a sloution!!!!! >> Here is a code!!! >> >> package com.android.app.testmapactivity; >> import android.os.Bundle; >> import android.view.Window; >> >> import com.google.android.maps.GeoPoint; >> import com.google.android.maps.MapActivity; >> import com.google.android.maps.MapView; >> >> >> public class TestMapActivity extends MapActivity { >> private static MapView mMapView; >> private GeoPoint mDefPoint; >> >> @Override >> protected boolean isRouteDisplayed() { >> // TODO Auto-generated method stub >> return false; >> } >> >> @Override >> protected void onCreate(Bundle icicle) { >> // TODO Auto-generated method stub >> super.onCreate(icicle); >> requestWindowFeature(Window.FEATURE_NO_TITLE); >> //mMapView = (MapView)findViewById(R.id.basic_map); >> mMapView = new MapView(this,"myapiKey"); >> mDefPoint = new GeoPoint(37504824,127016373); >> // The Country ClubPlaza (random loc) >> mMapView.getController().setZoom(12); >> mMapView.getController().setCenter(mDefPoint); >> setContentView(mMapView); >> >> >> >> } >> >> } >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---