I want to capture soundcard data.Means whatever playing on phone.It may be alert sounds,sound from sound etc,whatever sound is coming from device.I want to capture sound with android framework classes only.I dont want any native programming.Is it possible?If other tools are available plz provide me details.
Asked
Active
Viewed 823 times
1 Answers
0
If the device is in speakerphone mode, you can record via the microphone and it will pick up whatever the device is playing, along with any other ambient sounds. Use AudioRecord
or MediaRecorder
as you see fit.
If the device is not in speakerphone mode, you have no means of intercepting the audio output of other applications.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
From a security and privacy point of view it seems entirely correct that one should not be able to do that. – glenatron Mar 05 '13 at 16:29
-
any method after getting root permissions? – WSS Mar 06 '13 at 07:10
-
@WSS: Probably, but I am unfamiliar with the details. – CommonsWare Mar 06 '13 at 12:12