c_harline 发表于 2016-3-14 12:51:33

请教device.startActivity(component) 模拟器没有反应?

代码如下:
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
import sys

device = MonkeyRunner.waitForConnection()
MonkeyRunner.sleep(2)

package ='com.android.settings'
activity = '.Settings'
component = package + '/' + activity

device.startActivity(component)

但是android模拟器没有反应,没有打开设置主界面
页: [1]
查看完整版本: 请教device.startActivity(component) 模拟器没有反应?