마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

안드로이드 프로그래밍 질문

0 추천
-java 코드-
package com.example.administrator.myapplication;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;


public class GoogleMapTest extends FragmentActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.googlemaptest);

    }
}
 
-Xml 코드 -
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   tools:context=".MainActivity" >
    <fragment
       android:id="@+id/map"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       class="com.google.android.gms.maps.MapFragment" />
</LinearLayout>
 
-Manifest-
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.example.administrator.myapplication" >

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <application
       android:allowBackup="true"
       android:icon="@mipmap/ic_launcher"
       android:label="@string/app_name"
       android:supportsRtl="true"
       android:theme="@style/AppTheme" >
        <activity android:name=".GoogleMapTest" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
에러 상황은 
E/AndroidRuntime: FATAL EXCEPTION: main
rocess: com.example.administrator.myapplication, PID: 22005
                  
이렇게 에러가 뜹니다. 
스마트폰에서도 치명적 오류로 자동 종료되구요,,
안드로이드 프로그래밍 초보라 아는게 거의 없어서 이렇게 질문해 봅니다.
구글링을 해봐도 무슨소리인지 잘 알아듣지도 못하겠고,,,ㅠㅠ
책을 아무리 찾아봐도 잘 모르겠습니다. 제발 도와주세요!!
익명사용자 님이 2016년 11월 29일 질문
에러 상황이 더 있는데 8000자 이상이라 어쩔수 없이 잘랏어요..

1개의 답변

0 추천
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   tools:context=".MainActivity" >
    <fragment
       android:id="@+id/map"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       class="com.google.android.gms.maps.MapFragment" />
</LinearLayout>

위에 tools:context=".MainActiviy"  라고 되어 있는데  해당 부분을
GoogleMapTest 로 수정해야되지않을까요?

확실하진않습니다.
빅배스 (4,260 포인트) 님이 2016년 11월 30일 답변
...