How to record a call in android? -


recorder = new mediarecorder();      recorder.setaudiosource(mediarecorder.audiosource.mic);  recorder.setoutputformat(mediarecorder.outputformat.raw_amr);  recorder.setoutputfile(filename);  recorder.setaudioencoder(mediarecorder.audioencoder.amr_nb); 

this code , not able record voice of other person.so should use instead of audiosorce.mic. plz me

sorry disappoint you, can't, not in general case. android running phones have wiring in hardware/firmware media of call not pass through application processor @ - goes audio dsp , vice versa, cannot access it.

you can catch audio of person using phone, not other way around, disregarding silly hacks asking person use speakers , recording sound there via phone mic...


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -