码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2017-05-27 10:37:58      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:activity   mcu   als   sub   new   shel   grep   http   targe   

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

标签:activity   mcu   als   sub   new   shel   grep   http   targe   

原文地址:http://www.cnblogs.com/lytwajue/p/6911289.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!