Open lip5201 opened 4 years ago
It's not about the code that's broken, this particular problem is happening across different devices no matter the SDK or Android variant. Instead, this is the only snipped I got to work across majority of devices.
But we're trying dude. This bug is messy.
The project is great!
The problem has been solved, there is no problem calling the camera code! The great reason is that type="file" gets the empty type, which affects the code judgment
I added the default value judgment at the end
default:
includePhoto = true;
break;
switch (acceptType) {
case "/":
includePhoto = true;
includeVideo = true;
break paramCheck;
case "image/":
includePhoto = true;
break;
case "video/":
includeVideo = true;
break;
default:
includePhoto = true;
break;
}
}
After deleting this code, I can call up the camera, but I can’t upload pictures after taking pictures.