编程preSS按钮在另一个参加办法的活动 [英] Programmatically press a button in another appplication's activity

查看:115
本文介绍了编程preSS按钮在另一个参加办法的活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

摩托罗拉Droid3任务管理器显示一个弹出窗口询问用户是否要关闭正在运行的应用程序或没有。 我需要以编程方式回答不的活动。是不是可行?

Task manager on Motorola Droid3 shows a popup to ask the user whether to close a running application or not. I need to programmatically answer "no" to that Activity. Is that feasible?

一个更通用的问题:是否有可能注册我的应用程序,以赶上其它的应用程序活动的开幕活动,并自动preSS一个按钮,该活动

A more generic question: is it possible to "register" my application to catch the event of the opening of another's application activity and automatically press a button on that activity?

感谢您

推荐答案

没有,那是不可能的。如果这是可能的,那么每一个应用程序可以控制设备,就好像它是用户。例如,在这种情况下,这样的应用可以在设置中启用移动数据,但只有系统的应用程序可以做到这一点。

No, that is not possible. If that was possible, then each application could control device as if it was user. For example in this case such application could enable Mobile Data in Settings, but only system applications are allowed to do this.

这篇关于编程preSS按钮在另一个参加办法的活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆