Can't get image from camera with intent chooser on 4.2.2 AVD
问题 I'm working on a part of my application that allows a user to select an image either from camera or from gallery, using an Intent chooser. It's working fine on my 2.2.1 android phone, but when i compile it on a 4.2.2 AVD it returns a null pointer error when i use the camera, public void onClick(View View) { Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT,null); galleryIntent.setType("image/*"); galleryIntent.setAction(Intent.ACTION_GET_CONTENT); galleryIntent.addCategory(Intent