1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to get camera intent record automatically video when launched ?

Discussion in 'Android Development' started by Giouri Kilinkaridis, Apr 13, 2021.

  1. Giouri Kilinkaridis

    Thread Starter

    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);
    }
    });
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...