Start Activity Android with class name

后端 未结 2 1436
故里飘歌
故里飘歌 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条回答
  •  一向
    一向 (楼主)
    2021-01-17 13:22

    There are many action constants in the Settings class that can be used to create an intent that will start an activity for the provided sub-Setting or simply launch the Settings app depending on the action.

    For example:

    intent = new Intent(Settings.ACTION_SETTINGS); // ACTION_SETTINGS will start the Settings app
    
    intent = new Intent(Settings.ACTION_WIFI_SETTINGS); // ACTION_WIFI_SETTINGS will show the WiFi settings
    

提交回复
热议问题