@act262
2017-06-28T06:06:33.000000Z
字数 494
阅读 1622
Crash
调用相机的Intent Action
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
// Intent.createChooser 多个匹配的相机情况下可以让用户选择用哪一个
startActivityForResult(Intent.createChooser(intent, "请选择一个相机"),CODE);
出现了crash
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.hwCHOOSER (has extras) }
Intent.java
// 华为ROM修改了,导致没有可以处理这个Action的问题
public static final String ACTION_CHOOSER = "android.intent.action.CHOOSER";