简体   繁体   English

Android:自动启动应用程序,点击一个按钮,切换到另一个应用程序

[英]Android: Start App automatically, tap on a button, switch to another App

is it possible to open an App on an Android device automatically (for example every hour) tap on a button (or screen coordinate) in this appp and then switch to another app? 是否可以自动(例如每小时)在Android设备上打开一个应用程序,请点击该应用程序中的按钮(或屏幕坐标),然后切换到另一个应用程序?

Thanks for help! 感谢帮助!

There is AlarmManager class that allows you to schedule Intent to be fired at specific time. 有AlarmManager类,可让您安排在特定时间触发的Intent。 Then you could start some other app with new Intent. 然后,您可以使用新的Intent启动其他应用。

That said it is not advised to go in user way and randomly starting apps while he is doing something. 也就是说,不建议他以用户的方式去做,而在他做某事时随机启动应用程序。

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

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