Start Activity Android with class name

后端 未结 2 1434
故里飘歌
故里飘歌 2021-01-17 12:58

I am using Following Code to start setting I want to launch the setting activity which is started by android ins

PackageList allowedAppsPackageName=CallH         


        
2条回答
  •  -上瘾入骨i
    2021-01-17 13:40

    You can use this snippet to open Settings Activity :

    Intent intent=new Intent();
    intent.setComponent(new ComponentName("com.android.settings", "com.android.settings.Settings"));
    startActivity(intent);
    

    If you do not know what Activity you have to open,you can find it's name and it's package name as I mentioned here.

提交回复
热议问题