![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android-service
a_fly_pig
这个作者很懒,什么都没留下…
展开
-
实现打电话录音MediaRecover(),mediaRecover.start()不执行问题!!!
实现打电话自动录音。1.在mainActivity中: Intent intent=new Intent(MainActivity.this, MyService.class); startService(intent);// IntentFilter filter=new IntentFilter();// filter.addAction原创 2016-08-05 14:07:27 · 442 阅读 · 0 评论 -
MediaRecorder重复录音问题
在服务里onCreat()只启动一次PhoneStateListener监听就行,不需要多次启动。 如果将以下三句放入onStartCommand()方法则会重复电话录音。 telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); listener=ne原创 2016-09-22 08:12:09 · 847 阅读 · 0 评论