开发者

accessing mic and earphone of android cellphone

hey can anybody please tel me that can i access a mic and earphone of my android cell,as we can access camera hardware of cellphone so is there any way to access them as i want to make a walky-talky app.And im a very beginner so please 开发者_高级运维help me out thanks evry1.


You can use AudioRecord to record the audio.

Check some Android audio chat (SIP) projects to how they have done it:

http://code.google.com/p/csipsimple/

http://code.google.com/p/sipdroid/


Well that would be android.media.AudioRecord for the mic and android.media.AudioTrack for the sound. But what you want to do won't be something for beginner. You should at least be able to find this in the android api.

I suggest you to start with a less complex program. On the android developer site, you will find a good start for this. http://developer.android.com/guide/index.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜