随笔分类 -  MonkeyRunner

获取packageName和startActivity
摘要:1 import android 2 import pprint 3 4 # 获取packageName 5 droid = android.Android(('192.168.1.101', 42250)) 6 droid.makeToast('Hello, Android!') 7 pakgn = droid.getRunningPackages() 8 pprint.pprint(pakgn.result) 9 10 # 获取startActivity11 droid = android.Android(('192.168.1.101', 阅读全文

posted @ 2013-08-17 01:58 JasonKwok 阅读(352) 评论(0) 推荐(0)

Genymotion
摘要:Android as its bestOpenGLacceleration to achieve the best 3D performanceInstall application fromGoogle PlayEnable full screen option and improve your experienceFully controllableStart multiple virtual device at the same timeManage sensors:Battery level / statusGPSAcceleratorDirectly command virtual 阅读全文

posted @ 2013-08-16 23:10 JasonKwok 阅读(358) 评论(0) 推荐(0)

MonkeyRunner基本操作
摘要:1. #导入模块;1 from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage2. #连接当前设备,并返回一个MonkeyDevice对象;1 device = MonkeyRunner.waitForConnection()2 if not device:3 print "Please connect a device to start!"4 else:5 print "Start "3. #安装Android包,注意,此方法返回的返回值为boolean,由 阅读全文

posted @ 2013-08-15 19:51 JasonKwok 阅读(341) 评论(0) 推荐(0)

Using Android monkeyrunner from Eclipse, both in Windows and Linux!
摘要:This time I want to use English to make this article useful for all others in the world:)As you know, Android MonkeyRunner is a good testing tool, but we could only develop monkeyrunner under a text editor like Vim, emacs, etc.Diego Torres Milano wrote a blog to make Monkeyrunner running on Eclipse, 阅读全文

posted @ 2013-08-15 03:57 JasonKwok 阅读(496) 评论(0) 推荐(0)

Android ADT安装与卸载
摘要:Android ADT安装 Eclipse 版本: Eclipse Java EE IDE for Web Developers. Version: Kepler Release Build id: 20130614-0229在线安装:首先打开eclipse,然后依次单击Help/Install New Software单击后弹出的Install界面中的“Add”按钮,在Name中输入任意名字,并在Location中输入ADT的下载地址:https://dl-ssl.google.com/android/eclipse/在线下载奇慢无不,所以会出现“假死”的状态离线安装:http://... 阅读全文

posted @ 2013-08-15 01:45 JasonKwok 阅读(416) 评论(0) 推荐(0)

导航