摘要:
按键消息:例如,如果当前Activity没有处理KEY_VOLUME_UP/KEY_VOLUME_DOWN消息,最终此消息会流向哪里?http://blog.csdn.net/zjmdp/article/details/7706520ViewRootPhoneWindow 有onKeyDown和onKeyUp,里面会处理KEYCODE_VOLUME_UP / KEYCODE_VOLUME_DOWN 消息。--------------------------------------------------------------------------------对某个应用,如果要拦截按键消息, 阅读全文
posted @ 2012-11-21 18:59
Jimwind
阅读(323)
评论(1)
推荐(0)
摘要:
灭屏后,FM Activity onPauseFMplayService 继续运行 阅读全文
posted @ 2012-11-21 16:53
Jimwind
阅读(85)
评论(0)
推荐(0)
摘要:
frameworks/base/media/java/android/media/AudioService.javapublic void adjustStreamVolume(int streamType, int direction, int flags){sendVolumeUpdate(streamType, oldIndex, index);}private void setVolumeUpdate(int streamType, int oldIndex, int index){ Intent intent = new Intent(AudioManager.VOLUME_C... 阅读全文
posted @ 2012-11-21 15:57
Jimwind
阅读(1438)
评论(0)
推荐(0)
摘要:
FM的音量调节跟音频服务(AudioService)有区别.FmReceiverJNI.setControlNative(fd, V4L2_CID_AUDIO_VOLUME, value);在frameworks/base/core/jni/android_hardware_fm.cpp中android_hardware_fmradio_FmReceiverJNI_setControlNativestatic int gVolume = 0;static jint android_hardware_fmradio_FmReceiverJNI_setControlNative(...){ ... 阅读全文
posted @ 2012-11-21 15:04
Jimwind
阅读(307)
评论(0)
推荐(0)