How to open default camera in your application?
I don't want to open chooser for it (its client's requirement). I am using this intent android.media.action.IMAGE_CAPTURE
and calling activity for result.
Everything is fine but apps like Line Camera, Paper Camera are appearing in chooser with default camera app, i don't want to show chooser for.
Your attentions will be highly appreciated.
The only easy you can pick a specific activity is by using explicit intents. And for the built in camera app the package name could be different and device dependent
I believe you can find your answer(and code) in the link below:
How to launch android camera using intents
The author states there specifically that: "the code above should start the default Camera activity on your phone"
I find following solution and its working perfectly.
you can filter default camera by setting package in above intent. I've tested it by installing two application Line Camera and Paper Camera both apps were showing chooser but filtering by package above code open only default camera.