2016-06-01 1 views
0

this tutorial :을 사용하여 드라이브에 응용 프로그램을 연결하려고했습니다. 이 자습서는 website :로 리디렉션됩니다. 나는 매니페스트와 리다이렉트를 편집 할 것을 요구하는 포인트 4에 머물렀다 here. 지침은 '동일하지 않습니다. manifest.xml 편집을 도와주세요. 감사.Google 드라이브에 안드로이드 응용 프로그램을 연결하는 매니페스트 파일을 편집하는 방법

내 manifest.xml 파일 :

당신은 다음과 같습니다 튜토리얼을 바탕으로
<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.bignerdranch.android.drive_app" > 

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

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 
+0

[이 튜토리얼은 여기에 있습니다.] (https://developers.google.com/drive/android/java-client#set_mime_types_in_the_app_manifest)를 확인하면 매니페스트 파일에 입력해야하는 값을 확인할 수 있습니다. – ishmaelMakitla

+0

그 링크는 제가 @ishmaelMakitla에 대해 묻는 것과 동일한 링크입니다 – SKG

+0

Manifest 파일에 무엇을 넣을 지 확신하지 못했다고 하더군요 - manifest.xml을 편집 할 때 정확히 어떤 도움이 필요합니까? – ishmaelMakitla

답변

0

이 당신이 당신의 매니페스트 파일에해야 변경 내용은 다음과 같습니다 그런데

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.bignerdranch.android.drive_app" > 
    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme" > 
     <activity android:name=".MainActivity" > 
      <meta-data android:name="com.google.android.apps.drive.APP_ID" android:value="id=put-yourID-here" /> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
      <intent-filter> 
       <action android:name="com.google.android.apps.drive.DRIVE_OPEN" /> 
       <data android:mimeType="application/vnd.google-apps.drive-sdk.1234567890" /> 
       <data android:mimeType="image/png" /> 
       <data android:mimeType="image/jpeg" /> 
       <data android:mimeType="image/jpg" /> 
      </intent-filter> 
     </activity> 
    </application> 
</manifest> 

에서, data android:mimeType 요소는 선택 사항이지만 나머지 튜토리얼에서는 이러한 요소가 필요할 수 있습니다.

관련 문제