摘要:
#!/home/arcticant/android-sdks/tools/monkeyrunnerfrom com.android.monkeyrunner import MonkeyRunner, MonkeyDevice"""enter Ctrl+c to end"""def androidshot(): #set the interval between two screenshot sleeptime = 3 #connect device print "start ..." device = Monkey 阅读全文
posted @ 2012-11-16 14:46
登山者
阅读(304)
评论(0)
推荐(0)
摘要:
一、学到的知识:1.服务的启动和停止;a.Context.startService()启动流程:startService() -> onCreate() -> onStart()停止流程:stopService(0 -> onDestory()如果调用者直接退出而没有stopService,则Service会一直在后台运行;b.Context.bindService()启动流程:bindService() -> onCreate() -> onBind()调用者退出后,Service就会unbindService() -> onUnbind() -> 阅读全文
posted @ 2012-11-16 11:02
登山者
阅读(242)
评论(0)
推荐(0)
浙公网安备 33010602011771号