MapActivity를 상속 받은 클래스에서 화면 전환이 필요할 때에
startActivity() 메서드를 이용하여 Activity를 전환 하려고 합니다.
어떤 방법으로 하는지 알려주시면 고맙겠습니다.
Options 메뉴에서 되는 이유는 Options 메뉴도 Activity로 되어져
있어서 가능 한 건가요?
감사합니다.
자답입니다.
Google Map을 이용할 때 extends MapActivity 를 상속 받습니다.
MapActivity는 MapView를 가지고 있습니다.
public static MapView mMapView; 이와 같이 전역변수로 선언되어져 있는 mMapView를 이용했습니다.
Intent HappV2Intent = new Intent(mMapView.getContext(), HappV2.class);mMapView.getContext().startActivity(HappV2Intent);
로그인 유지
자답입니다.
Google Map을 이용할 때 extends MapActivity 를 상속 받습니다.
MapActivity는 MapView를 가지고 있습니다.
public static MapView mMapView; 이와 같이 전역변수로 선언되어져 있는 mMapView를 이용했습니다.
Intent HappV2Intent = new Intent(mMapView.getContext(), HappV2.class);
mMapView.getContext().startActivity(HappV2Intent);
감사합니다.