Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的目标是设置一个每 30 秒触发一次的功能,该功能模拟屏幕上的点击,以便屏幕保持打开状态。这是否可能,或者无需在 Java 中本地编程就可以实现这一点的最佳方法是什么。
如果我能通过phonegap做到这一点,我会很高兴。
如果您在 PhoneGap 中,您可以禁用空闲计时器,您需要将其添加到 UIApplication 对象。
[[UIApplication sharedApplication] setIdleTimerDisabled: YES];