自动截图捕获正在运行的android应用程序,以实现应用商店承诺 [英] Automatic screenshot capture of the running android application for app store commitment

查看:149
本文介绍了自动截图捕获正在运行的android应用程序,以实现应用商店承诺的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经批量生成了许多apk安装包,我需要将它们提交到android应用商店.由于应用商店要求我为正在运行的应用提供3〜4张屏幕截图的图片,因此我不想手动执行此操作.因此,我尝试使用一些自动化脚本.经过研究,我得到了支持JPython的MIT sikuli UI交互式编程IDE.

I've batchly generated a lot of apk install package, and I need to commit them to the android app store. Since the app store requires me to provide 3~4 pictures of the screenshot for the running application, and I don't wanna do this manually. So I'm trying to use some automation script. After some research I get the MIT sikuli UI interactive programming IDE which supports JPython.

我遇到的问题是我需要卸载以前安装的应用程序,否则安装过程将失败,并显示"INSTALL_FAILED_INSUFFICIENT_STORAGE"错误.我认为最好的方法是在命令行中运行卸载,这就是问题所在.生成的批处理apk的程序包名称均以相同的令牌开头,例如"com.abc.efg",而与一些较小的数字不同,例如"com.abc.efg_123_353"或"com.abc.efg_134_324",因此我正在转向一些"-adb卸载com.abc.efg *"之类的通配符解决方案,但"adb"之类的命令集似乎不支持通配符.有什么线索吗?

The problem I got is that I need to uninstall my previously installed app or the installation process would fail with the "INSTALL_FAILED_INSUFFICIENT_STORAGE" error. I think the best way would be to run the uninstallation in the command line, and here comes the problem. The package name of the generated batched apks all starts with some same token, let's say "com.abc.efg", while differs with some minor numbers like "com.abc.efg_123_353" or "com.abc.efg_134_324", so I'm turning to some wild-char solution like "adb uninstall com.abc.efg*", but wild-char seems not be supported with the "adb" like command set. Any clue for this?

推荐答案

我用一点技巧解决了这个问题.我保留了以前安装的软件包后缀,每次需要安装一个新的后缀时,我只需调用"adb卸载"即可删除以前安装的apk.至于命令行中的android设备(模拟器)的屏幕截图, e是由某人解决.

I've solved this with little trick. I preserve the previous installed package postfix, and every time I need to install a new one, I just call "adb uninstall" to remove the previous installed apk. As to the screenshot for the android device(emulator) in the command line, here is the solution by some guy.

这篇关于自动截图捕获正在运行的android应用程序,以实现应用商店承诺的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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