Android fragments 使用adb命令访问android片段
类似于我看到的Android中使用以下adb命令启动的Android fragments 使用adb命令访问android片段,android-fragments,android-activity,command-line,adb,Android Fragments,Android Activity,Command Line,Adb,类似于我看到的Android中使用以下adb命令启动的活动: startCommand = "adb shell am start -n " + appPackage + "/." + appActivity; 有没有一种方法可以选择性地在活动中启动片段?您只需添加一个名为:android:show_fragment的额外的命令,并在am start命令中显示片段名称: am start -n com.android.settings/.Settings -e ":android:show_f
活动
:
startCommand = "adb shell am start -n " + appPackage + "/." + appActivity;
有没有一种方法可以选择性地在活动中启动片段?您只需添加一个名为
:android:show_fragment
的额外的命令,并在am start
命令中显示片段名称:
am start -n com.android.settings/.Settings -e ":android:show_fragment" com.android.settings.LocalePicker