http://code.google.com/p/auto-answer/

Here is a code snippet to trigger an answer for the incoming call:

private void answerPhoneAidl(Context context) throws Exception {
// Set up communication with the telephony service (thanks to Tedd's Droid Tools!)
TelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
Class c = Class.forName(tm.getClass().getName());
Method m = c.getDeclaredMethod("getITelephony");
m.setAccessible(true);
ITelephony telephonyService;
telephonyService = (ITelephony)m.invoke(tm);
// Silence the ringer and answer the call!
telephonyService.silenceRinger();
telephonyService.answerRingingCall();
}


http://davidtpate.com/2014/02/23/auto-answering-calls-on-android/

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 一些资料,binder,content provider
  2. Android - 实训项目总结
  3. ADT在线安装(http://dl-ssl.google.com/an
  4. Linux中source命令,在Android build 中的
  5. Android WIFI状态监控
  6. Android横竖屏切换Activity生命周期
  7. Android分辨率转像素
  8. android 中如何获取mapkey
  9. android binder机制实现
  10. Android(安卓)常见分辨率 —— mdpi、hdp