Android 技巧

1、无声拍照:

AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE); mgr.setStreamMute(AudioManager.STREAM_SYSTEM, true);

And these two lones just after image get captured:

AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE); mgr.setStreamMute(AudioManager.STREAM_SYSTEM, false);

I know only this solution and I personally used it in my application

http://stackoverflow.com/questions/14476791/android-mute-camera-shutter-sound

2、后台截屏:

  使用gsnap需要root http://www.limodev.cn/downloads/ 源码下载 在android源码环境编译 


你可能感兴趣的:(Android 技巧)