2013-04-24 3 views

답변

1

내가 최근 업데이트 할 수 있고,이 단계 희망이 당신의 workspace에서 서비스 Libray를하고 sdk를 업데이트하고 C:\android-sdk-windows\extras\google 및 수입 구글 플레이처럼 Google Play service

step [2] 고토 SDK 경로를 확인 짧은

step [1]에 도움 따라

step [3] 프로젝트에 library을 추가하십시오.

당신의 XML의

step [4] 또한 권한을 필요 확인

<permission 
     android:name="com.tixe.Activity.permission.MAPS_RECEIVE" 
     android:protectionLevel="signature" /> 
    <uses-feature 
     android:glEsVersion="0x00020000" 
     android:required="true" /> 
    <uses-permission android:name="YourPackage.permission.MAPS_RECEIVE" /> 
    <meta-data 
      android:name="com.google.android.maps.v2.API_KEY" 
      android:value="yourKey" /> 
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/> 

매니페스트

public class YourActivi extends FragmentActivity { 
.... 
GoogleMap mapView; 

mapView = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapview)).getMap(); 
} 

단계 [6]과 같은 활동에

<fragment 
     android:id="@+id/mapview" 
     android:name="com.google.android.gms.maps.SupportMapFragment" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:layout_above="@+id/includefooter" 
     android:layout_below="@+id/relativetop" /> 

step [5]처럼 넣어.

+0

감사합니다 @ankitmakwana지도를로드하고로드했습니다. –

1

내 안드로이드 응용 프로그램에서이 응용 프로그램을 통합 할 때,이 통합으로 인해 병이났습니다. 여기에서 적절한 단계를 거친 후 https://developers.google.com/maps/documentation/android/ 나를 많이 도와줍니다. 기억해야 할 중요한 점은 Android SDK 관리자로부터 Google Api를 설치하는 것을 잊지 마세요.

관련 문제