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

Posted lytwajue

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

http://www.cnblogs.com/jiangz/p/3330245.html


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的主要内容,如果未能解决你的问题,请参考以下文章

Application_Start 与 Session_Start

Connector start方法窥探

START_STICKY 和 START_NOT_STICKY

dos下start用法

java中thread的start()和run()有何区别?

Python中Thread类的start和run方法的区别