start com.android.settings/com.android.settings.SubSettings activity

1. get class name:

adb shell

shell@android:/mnt/sdcard/books $ dumpsys window windows >dump.txt

grep "focus"

  mFocusedApp=AppWindowToken{420a5df8 token=Token{420a5c00 ActivityRecord{420a5ac8 com.android.settings/.SubSettings}}}
  mInputMethodTarget=Window{420fc320 com.android.settings/com.android.settings.SubSettings paused=false}

or

adb shell "dumpsys window windows | grep -E ‘mCurrentFocus|mFocusedApp‘"

http://stackoverflow.com/questions/11201659/whats-android-adb-shell-dumpsys-tool-and-its-benefits


2. start activity

            Intent intent=new Intent("/");
            ComponentName cn=new ComponentName("com.android.settings", "com.android.settings.profile.ProfileSettings");
//            ComponentName cn=new ComponentName("com.android.settings", ".profile.ProfileSettings");
            intent.setComponent(cn);
            startActivityForResult(intent, 1);


start com.android.settings/com.android.settings.SubSettings activity,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。