大家好我是新到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做(的似乎没有人知道)。
AudioManager文档
2。
没有你不行。 这是一个安全的决定。正如@AndiJay说,恶意程序可以再使用。
No you can't. And that is a security decision. As @AndiJay said, malicious programs could then be used.