运行在设备的Andr​​oid APK无需用户交互 [英] Run Android apk in Device without User interaction

查看:137
本文介绍了运行在设备的Andr​​oid APK无需用户交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道它是如何可能的 - 通过ADB命令,在我的设备上安装APK后,我要自动运行的应用程序。没有用户交互将被用于运行和导航屏幕。安装的应用程序将运行并自动导航从一个屏幕到另一个。但是,所有的屏幕应该达到。我不知道它是如何可能的?

I need to know how it is possible - After installing apk in my device via adb command, I want to run the app automatically. No user interaction will be used to run and navigate screens. The installed app will be run and navigate from one screen to another automatically. But all screen should be reached. I don't know how it is possible?

让我分享一个例子。再说了,我的应用程序有签到和注册功能。在设备安装APK后,我希望应用程序将执行签到或注册code自动完成,无需用户交互。

Let me share an example. Say, my app has SignIn and SignUp features. After installing the apk in device, I want the app will execute SignIn or SignUp code automatically, without user interaction.

的实际步骤是:


  1. APK将通过ADB命令安装。

  2. 安装APK,应用程序应该在设备自动运行,无需任何用户交互后。

  3. 作为应用程序将无需用户交互运行,我需要知道多少时间的应用程序正在以签到,注册或其它屏幕redering。眼下,重点签到和注册时间。让时间后(很容易找出多少时间需要签到)的应用程序将在服务器发送的时间(通过PHP,这是很容易做到)。

专家知道吗?

感谢您!

推荐答案

我觉得MonkeyRunner( http://developer.android.com/tool​​s/help/monkeyrunner_concepts.html )是一个很好的解决方案。虽然不能为所有的事情我需要什么,但我没有找到我需要的任何解决方案。感谢@Simon引入MonkeyRunner。

I think MonkeyRunner (http://developer.android.com/tools/help/monkeyrunner_concepts.html) is a good solution. Though it can't serve all things what I need, but I did not find any solution for my requirement. Thanks @Simon for introducing MonkeyRunner.

这篇关于运行在设备的Andr​​oid APK无需用户交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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