2016-03-23 6 views
1

を処理することが判明私はチュートリアルを次ていると私は、このエラーを持っているない活動が意図する行為= android.intent.action.OPEN_DOCUMENT

android.content.ActivityNotFoundExceptionを助けてください:いいえ活動は「 Intent { act=android.intent.action.OPEN_DOCUMENT cat=[android.intent.category.OPENABLE] typ=image/* }を処理することが判明

私のクラス

public class Load_Image_Activity extends AppCompatActivity { 

    private static final int REQUEST_OPEN_RESULT_CODE = 0; 
    ImageView image; 
    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_load__image_); 

     image=(ImageView)findViewById(R.id.imageView2); 

    Intent intent=new Intent(Intent.ACTION_OPEN_DOCUMENT); 
    intent.addCategory(Intent.CATEGORY_OPENABLE); 
    intent.setType("image/*"); 
    startActivityForResult(intent,REQUEST_OPEN_RESULT_CODE); 
} 
} 

マニフェストファイル

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.app.soulhi.slider"> 
    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 

     <activity android:name=".Load_Image_Activity"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

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

</manifest> 
+0

実行中のAndroidのバージョンは何ですか? – CommonsWare

+0

アンドロイドスタジオ1.5.1 –

+0

マニフェストを表示してください –

答えて

関連する問題