Is there a way to phone somebody and play an audio file in android?

坚强是说给别人听的谎言 提交于 2020-01-03 11:01:56

问题


I would like to create an ermergency call application : if triggered, it calls a given number and play an audio file, giving the information the caller couldn't give himself.

For that I need to engage a call but ensure that I can replace any sound from the speaker with an played audio file. Can I do that in android ? What's the way ?


回答1:


You can't do this with the G1 at this time, because two different processors handle the call and the apps, and there is no path between them. AFAIK this isn't in the SDK yet, but assuming hardware comes out that can do it, it will be added to the SDK.

http://groups.google.com/group/android-developers/browse_thread/thread/d04c307973345fef/a628e578900b3dce?lnk=gst&q=dave+sparks+play+audio#a628e578900b3dce



来源:https://stackoverflow.com/questions/825029/is-there-a-way-to-phone-somebody-and-play-an-audio-file-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!