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

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

时间:2014-07-13 16:04:51      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:android   http   art   for   cti   io   

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,布布扣,bubuko.com

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

标签:android   http   art   for   cti   io   

原文地址:http://blog.csdn.net/llrraa2010/article/details/37737809

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