简体   繁体   English

我如何着手实施监控应用程序

[英]How do I go about implementing a monitoring app

I am trying to build a monitoring app using LUA in corona labs.我正在尝试在电晕实验室中使用 LUA 构建一个监控应用程序。 I was wondering how I would go about doing that.我想知道我将如何去做。

Background: the app should notify the user when there is another app or outside third party accessing the camera/microphone.背景:当有另一个应用程序或外部第三方访问相机/麦克风时,应用程序应通知用户。

I'm thinking trying to get access to the devices resource manager and it notify the app when the camera and microphone is being used.我正在考虑尝试访问设备资源管理器,并在使用相机和麦克风时通知应用程序。
I haven't come across anything like this before.我以前从未遇到过这样的事情。 Am I on the right path?我在正确的道路上吗? Or am I way off?还是我离题了? How would you go about doing this?你会怎么做呢?

I'm not expecting a definite answer, just a nudge in the right direction :)我不期待一个明确的答案,只是朝着正确的方向轻推:)

In general this kind of behavior is not what Corona is designed for.一般来说,这种行为不是 Corona 的设计目的。 You would likely have to use native tools, or Corona native if you want to use corona for your UI, to access this kind of data.如果您想在 UI 中使用 corona,您可能必须使用本机工具或 Corona 本机来访问此类数据。

There is an interesting discussion about how it can be done in Android here How to check whether microphone is used by any background app , hope it helps!这里有一个关于如何在 Android 中完成的有趣讨论如何检查任何后台应用程序是否使用了麦克风,希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM