Search code examples
androidadb

How to start a activity which name is unknown?


i wanted to use monkey,but it did not work!

startAppCommand = 'moneky -p com.example.packageName -c android.intent.category.LAUNCHER 1'
result = device.shell(startAppCommand)
print('the result of '+startAppCommand + ' is ' + result)

then the reslut was :

the result of moneky -p com.example.packageName -c android.intent.category.LAUNCHER 1 is /system/bin/sh: moneky: not found

is there a solution for dealing with the problem? thanks!


Solution

  • startAppCommand = 'moneky -p com.example.packageName...

    I think it spells monkey, not moneky which is clearly what error message points to anyway:

    moneky: not found