前言
本文列出了从源码中截取的全部系统服务管理Api。
| 字段表示 | 字符串表示 | 描述 |
|---|---|---|
| WINDOW_SERVICE | (“window”) | The top-level window manager in which you can place custom windows The returned object is a android.view.WindowManager. |
| LAYOUT_INFLATER_SERVICE | (“layout_inflater”) | android.view.LayoutInflater for inflating layout resources in this context. |
| ACTIVITY_SERVICE | (“activity”) | android.app.ActivityManager for interacting with the global activity state of the system. |
| POWER_SERVICE | (“power”) | android.os.PowerManager for controlling power management. |
| ALARM_SERVICE | (“alarm”) | android.app.AlarmManager for receiving intents at thetime of your choosing. |
| NOTIFICATION_SERVICE | (“notification”) | android.app.NotificationManager for informing the user of background events. |
| KEYGUARD_SERVICE | (“keyguard”) | android.app.KeyguardManager for controlling keyguard. |
| LOCATION_SERVICE | (“location”) | android.location.LocationManager for controlling ocation(e.g., GPS) updates. |
| SEARCH_SERVICE | (“search”) | android.app.SearchManager for handling search. |
| VIBRATOR_SERVICE | (“vibrator”) | android.os.Vibrator for interacting with the vibrator hardware. |
| CONNECTIVITY_SERVICE | (“connection”) | android.net.ConnectivityManager ConnectivityManager for handling management of network connections. |
| WIFI_SERVICE | (“wifi”) | android.net.wifi.WifiManager WifiManager for management of Wi-Fi connectivity. |
| WIFI_P2P_SERVICE | (“wifip2p”) | android.net.wifi.p2p.WifiP2pManager WifiP2pManager for management of Wi-Fi Direct connectivity. |
| INPUT_METHOD_SERVICE | (“input_method”) | An android.view.inputmethod.InputMethodManager InputMethodManager for management of input methods. |
| UI_MODE_SERVICE | (“uimode”) | An android.app.UiModeManager for controlling UI modes. |
| DOWNLOAD_SERVICE | (“download”) | android.app.DownloadManager for requesting HTTP downloads |
| BATTERY_SERVICE | (“batterymanager”) | android.os.BatteryManager for managing battery state |
| JOB_SCHEDULER_SERVICE | (“taskmanager”) | A android.app.job.JobScheduler for managing scheduled tasks |
| NETWORK_STATS_SERVICE | (“netstats”) | android.app.usage.NetworkStatsManager NetworkStatsManager for querying network |
本文列举了Android系统中用于管理各种系统服务的API,包括窗口管理、布局填充、活动管理等,为开发者提供了全面的系统服务接口参考。
1558

被折叠的 条评论
为什么被折叠?



