• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to get camera intent record automatically video when launched ?

Hello everybody,
I can't find anywhere information on how to get camera intent record automatically video when launched.
This is what I use to get the intent but still user has to press the record button. Is it even possible to automate something like this using camera intent or I have to build my own version of camera app.

findViewById(R.id.btn).setOnClickListener(new View.OnClickListener() {
@override
public void onClick(View v) {
Intent recordVideo = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
startActivity(recordVideo);
}
});
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones