Download presentation
Presentation is loading. Please wait.
Published byAmi Gilmore Modified over 8 years ago
1
Google map v2
5
https://code.google.com/apis/console
18
Manifest.xml > Manifest
19
Name : com.google.ancdroid.maps.v2.API_KEY Manifest.xml > Application
20
Manifest.xml > Permissions Name : com.gmac.simple.map2.permission.MAPS_RECEIVE Label : signature
21
선택 : 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
23
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.gmac.simple.map2" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" /> Manifest.xml
24
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.gmac.simple.map2.MainActivity" android:label="@string/app_name" >
25
<fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fragment" android:name="com.google.android.gms.maps.SupportMapFragment" android:layout_width="match_parent" android:layout_height="match_parent"/> Layout > activity_main.xml
26
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; // 구글 맵 객체 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } MainActivity.java
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.