我们可以检测到Android是使用麦克风的应用程序? [英] Can we detect which android application is using the microphone?
本文介绍了我们可以检测到Android是使用麦克风的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好我是新到Android NDK,并希望找到两件事情:
Hello everyone i am new to android ndk and want to find two things:
- 我们可以检测话筒是否打开或不?
- 我们可以检测到应用程序正在使用的麦克风?
这将是一件好事,如果任何人知道任何想法如何通过C或通过Android SDK中做以上。
It would be good if anyone knows any idea how to do above through C or through android sdk.
推荐答案
1。
AudioManager am = Context.getSystemService(Context.AUDIO_SERVICE)
am.isMicrophoneMute()
但我不知道如何使用NDK做(的似乎没有人知道)。
2。
没有你不行。 这是一个安全的决定。正如@AndiJay说,恶意程序可以再使用。
No you can't. And that is a security decision. As @AndiJay said, malicious programs could then be used.
这篇关于我们可以检测到Android是使用麦克风的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文