摘要:
#!/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 阅读全文
摘要:
一、学到的知识:1.服务的启动和停止;a.Context.startService()启动流程:startService() -> onCreate() -> onStart()停止流程:stopService(0 -> onDestory()如果调用者直接退出而没有stopService,则Service会一直在后台运行;b.Context.bindService()启动流程:bindService() -> onCreate() -> onBind()调用者退出后,Service就会unbindService() -> onUnbind() -> 阅读全文