Hi,
I have a Button with a command that opens the camera
private final class TakeSelfieCommand extends Command {
@Override
public void actionPerformed(ActionEvent evt) {
try {
String value = Capture.capturePhoto(-1, - 1);
if (value != null) {
....
}
} catch (IOException ex) {
Log.e(ex);
}
}
and I received this bizarre crash from a user:
[EDT] 0:2:3,153 - android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x4000000 (has extras) }
[EDT] 0:2:3,158 - android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.media.action.IMAGE_CAPTURE flg=0x4000000 (has extras) }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1723)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1491)
at android.app.Activity.startActivityForResult(Activity.java:3436)
at android.app.Activity.startActivityForResult(Activity.java:3393)
at com.codename1.impl.android.CodenameOneActivity.startActivityForResult(CodenameOneActivity.java:515)
at com.codename1.impl.android.f.b(AndroidImplementation.java:4725)
at com.codename1.aa.n.c(Display.java:3010)
at com.codename1.d.a.a(Capture.java:68)
at com.codename1.d.a.a(Capture.java:113)
at de.infobest.mixnstyle.e$f.a(Mix.java:485) // this is my line with: String value = Capture.capturePhoto(-1, - 1);
Do you know what the problem might be when user takes the pic?