QNA > C > Come Funziona L'applicazione Registratore Di Schermo In Android?

Come funziona l'applicazione registratore di schermo in Android?

L'applicazione Android Recorder usa due classi:-

i). MediaRecorder

ii). MediaPlayer

Android ha un microfono incorporato attraverso il quale è possibile catturare l'audio e memorizzarlo, o riprodurlo nel tuo telefono. Ci sono molti modi per farlo, ma il modo più comune è attraverso la classe MediaRecorder.

Android fornisce la classe MediaRecorder per registrare audio o video. Per utilizzare la classe MediaRecorder, dovrete prima creare un'istanza della classe MediaRecorder. Its syntax is given below.

  1. MediaRecorder myAudioRecorder = new MediaRecorder(); 

Now you will set the source , output and encoding format and output file. Their syntax is given below.

  1. myAudioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); 
  2. myAudioRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); 
  3. myAudioRecorder.setAudioEncoder(MediaRecorder.OutputFormat.AMR_NB); 
  4. myAudioRecorder.setOutputFile(outputFile); 

After specifying the audio source and format and its output file, we can then call the two basic methods prepare and start to start recording the audio.

  1. myAudioRecorder.prepare(); 
  2. myAudioRecorder.start();  

So if you also want to implement and create an app for such you can go through this link:-

Android Audio Capture Tutorial

Also in order to learn more about media recorder app search for there tutorials.

Also would like to get into your notice that to build a media recorder app is very easy and simple.

<- Piece Of Advice->

Try to develop a very beautiful UI/UX for the same. It will give a good kickstart to your app.

Hope, you would have liked this information and also you develop your app quickly.

Please Upvote and maybe follow.

Thanks!

Di Currier Shakoor

Quali sono alcune buone applicazioni Anime? :: Come impostare la mia VPN su LG Q6 Mobile
Link utili