How to start this operation, use adb shell am start -D -d pg / xx. Activity name - Main $ Activity

I want to debug android. I am using start a Activity: am start [-D] [-W] to get started. the applicationg package name is com.dualboot.apps.springzen. the main activity is com.dualboot.apps.springzen.Main $ Activity. i use the command
'adb shell am start com.dualboot.apps.springzen / com.dualboot.springzen.Main $ Actinity'

does not exist

Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.dualboot.apps.springzen/com.dualboot.springzen.Main }
Error type 3
Error: Activity class {com.dualboot.apps.springzen/com.dualboot.springzen.Main} does not exist.

      

how to start this activity

+3


source to share


1 answer


Since you are calling the component, you need to add the component tag -n

.

Use this:

adb shell am start -n com.dualboot.apps.springzen/.MainActivity

      



if you actually have $

in your class name (I doubt it) which usually refers to the inner class, then you need to use:

adb shell am start -n com.dualboot.apps.springzen/.Main\$Activity

      

+1


source







All Articles