안녕하세요. 감사합니다. 내 첫 번째 안드로이드 애플 리케이션에 노력하고 있습니다. 탭 중 하나에서 Google지도의 기능 버전을 원합니다. 보시다시피, 나는 잘하고 있습니다. 그러나 나는 에뮬레이터가 제대로 작동하는지 확인하기 위해 탐색/주소 등의 주소를 확대/축소하는 방법을 모른다.Google지도의 테스트 기능이 안드로이드 앱 내부에서 볼 수 있습니다.
<?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"
>
<com.google.android.maps.MapView
android:id="@+id/myMapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="myapikey"
/>
</LinearLayout>
내지도 활동의 자바 : 여기
import android.os.Bundle;
import com.google.android.maps.MapActivity;
public class MapsActivity extends MapActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.maps_layout);
}
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}