Google map v2
Manifest.xml > Manifest
Name : com.google.ancdroid.maps.v2.API_KEY Manifest.xml > Application
Manifest.xml > Permissions Name : com.gmac.simple.map2.permission.MAPS_RECEIVE Label : signature
선택 : android.permission.INTERNET android.permission.WRITE_EXTERNAL_STORA GE android.permission.ACCESS_NETWORK_STATE android.permission.ACCESS_FINE_LOCATION android.permission.ACCESS_COARSE_LOCATI ON 타이핑 : com.google.android.providers.gsf.permission.REA D_GSERVICES
<manifest xmlns:android=" package="com.gmac.simple.map2" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" /> Manifest.xml
<application android:allowBackup="true" > <activity android:name="com.gmac.simple.map2.MainActivity" >
<fragment xmlns:android=" android:name="com.google.android.gms.maps.SupportMapFragment" android:layout_width="match_parent" android:layout_height="match_parent"/> Layout > activity_main.xml
package com.gmac.simple.map2; // 자기 패키지명 import android.os.Bundle; import android.support.v4.app.FragmentActivity; import com.google.android.gms.maps.GoogleMap; public class MainActivity extends FragmentActivity { GoogleMap mGoogleMap; // 구글 맵 protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } MainActivity.java