2013-07-18 40 views
0

我想分享圖片庫中的圖片到我的應用程序我使用下面的代碼來做到這一點,但我無法看到分享選項myApp。我使用Android手機版 - 4.0.3自定義分享意圖Android

M代碼:

清單文件:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.m.media" 
    android:versionCode="1" 
    android:versionName="1.0" > 

    <uses-sdk 
     android:minSdkVersion="8" 
     android:targetSdkVersion="17" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 
     <activity 
      android:name=".MainActivity" 
      android:label="@string/app_name" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
      <intent-filter > 
       <action android:name="android.intent.action.SEND_MULTIPLE"/> 
       <category android:name="android.intent.category.DEFAULT"/> 
      <data android:mimeType="image/*" /> 
     </intent-filter> 
     </activity> 

    </application> 

</manifest> 

我想我的應用程序是在股票期權請告訴我,我在哪裏出錯了,並建議我正確的解決方案。

回答

0

可能是因爲您只註冊了MULTIPLE意圖。

嘗試添加該意圖過濾器:

<intent-filter> 
    <action android:name="android.intent.action.SEND" /> 
    <category android:name="android.intent.category.DEFAULT" /> 
    <data android:mimeType="image/*" /> 
</intent-filter>