앱에 Google지도 API를 설치하고 있습니다. 모든 것이 실행 중이며 Google지도 활동을 시작할 수 있지만지도가 표시되지 않습니다. 그리드를 보여줌으로써 확대/축소 할 수 있습니다.Google지도 API로 표시되지 않는지도 android
package com.fotolife.app;
import android.os.Bundle;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
public class Map extends MapActivity {
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
@Override
protected void onCreate(Bundle arg0) {
// TODO Auto-generated method stub
super.onCreate(arg0);
setContentView(R.layout.map);
}
}
이^그건 내 Map.java
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.google.android.maps.MapView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="I Took this out for security reasons, but it works."
/>
</LinearLayout>
입니다^여기 내 map.xml 도움을
감사합니다!
AndroidMenifest.xml 파일 – rajpara
에 인터넷 권한을 설정 했습니까? 나는 이것을 가지고있다 : –
user1513687
및 uses-library> of menifest –
rajpara