public final class SystemServices extends Object
| Modifier and Type | Method and Description |
|---|---|
static android.view.accessibility.AccessibilityManager |
getAccessibilityManager()
Get
AccessibilityManager. |
static android.accounts.AccountManager |
getAccountManager()
Get
AccountManager. |
static android.app.ActivityManager |
getActivityManager()
Get
ActivityManager. |
static android.app.AlarmManager |
getAlarmManager()
Get
AlarmManager. |
static android.media.AudioManager |
getAudioManager()
Get
AudioManager. |
static android.text.ClipboardManager |
getClipboardManager()
Get
ClipboardManager. |
static android.app.admin.DevicePolicyManager |
getDevicePolicyManager()
Get
DevicePolicyManager. |
static android.os.DropBoxManager |
getDownloadManager()
Get
DropBoxManager. |
static android.view.inputmethod.InputMethodManager |
getInputMethodManager()
Get
InputMethodManager. |
static android.app.KeyguardManager |
getKeyguardManager()
Get
KeyguardManager. |
static android.view.LayoutInflater |
getLayoutInflater()
Get
LayoutInflater. |
static android.location.LocationManager |
getLocationManager()
Get
LocationManager. |
static android.app.NotificationManager |
getNotificationManager()
Get
NotificationManager. |
static android.os.PowerManager |
getPowerManager()
Get
PowerManager. |
static android.app.SearchManager |
getSearchManager()
Get
SearchManager. |
static android.hardware.SensorManager |
getSensorManager()
Get
SensorManager. |
static Object |
getSystemService(String serviceName)
Get a system service by name.
|
static android.telephony.TelephonyManager |
getTelephonyManager()
Get
TelephonyManager. |
static android.app.UiModeManager |
getUiModeManager()
Get
UiModeManager. |
static android.os.Vibrator |
getVibrator()
Get
Vibrator. |
static android.service.wallpaper.WallpaperService |
getWallpaperService()
Get
WallpaperService. |
static android.net.wifi.WifiManager |
getWifiManager()
Get
WifiManager. |
static android.view.WindowManager |
getWindowManager()
Get
WindowManager. |
public static Object getSystemService(String serviceName)
This method is equivalent to App.getInstance().getContext().getSystemService(serviceName). Therefore, App class must be
initialized by App.init(Context) before calling this method.
serviceName - System service name.public static android.view.accessibility.AccessibilityManager getAccessibilityManager()
AccessibilityManager.
This method is equivalent to getSystemService(Context.ACCESSIBILITY_SERVICE).
public static android.accounts.AccountManager getAccountManager()
AccountManager.
This method is equivalent to getSystemService(Context.ACCOUNT_SERVICE).
public static android.app.ActivityManager getActivityManager()
ActivityManager.
This method is equivalent to getSystemService(Context.ACTIVITY_SERVICE).
public static android.app.AlarmManager getAlarmManager()
AlarmManager.
This method is equivalent to getSystemService(Context.ALARM_SERVICE).
public static android.media.AudioManager getAudioManager()
AudioManager.
This method is equivalent to getSystemService(Context.AUDIO_SERVICE).
public static android.text.ClipboardManager getClipboardManager()
ClipboardManager.
This method is equivalent to getSystemService(Context.CLIPBOARD_SERVICE).
public static android.app.admin.DevicePolicyManager getDevicePolicyManager()
DevicePolicyManager.
This method is equivalent to getSystemService(Context.DEVICE_POLICY_SERVICE).
public static android.os.DropBoxManager getDownloadManager()
DropBoxManager.
This method is equivalent to getSystemService(Context.DROPBOX_SERVICE).
public static android.view.inputmethod.InputMethodManager getInputMethodManager()
InputMethodManager.
This method is equivalent to getSystemService(Context.INPUT_METHOD_SERVICE).
public static android.app.KeyguardManager getKeyguardManager()
KeyguardManager.
This method is equivalent to getSystemService(Context.KEYGUARD_SERVICE).
public static android.view.LayoutInflater getLayoutInflater()
LayoutInflater.
This method is equivalent to getSystemService(Context.LAYOUT_INFLATER_SERVICE).
public static android.location.LocationManager getLocationManager()
LocationManager.
This method is equivalent to getSystemService(Context.LOCATION_SERVICE).
public static android.app.NotificationManager getNotificationManager()
NotificationManager.
This method is equivalent to getSystemService(Context.NOTIFICATION_SERVICE).
public static android.os.PowerManager getPowerManager()
PowerManager.
This method is equivalent to getSystemService(Context.POWER_SERVICE).
public static android.app.SearchManager getSearchManager()
SearchManager.
This method is equivalent to getSystemService(Context.SEARCH_SERVICE).
public static android.hardware.SensorManager getSensorManager()
SensorManager.
This method is equivalent to getSystemService(Context.SENSOR_SERVICE).
public static android.telephony.TelephonyManager getTelephonyManager()
TelephonyManager.
This method is equivalent to getSystemService(Context.TELEPHONY_SERVICE).
public static android.app.UiModeManager getUiModeManager()
UiModeManager.
This method is equivalent to getSystemService(Context.UI_MODE_SERVICE).
public static android.os.Vibrator getVibrator()
Vibrator.
This method is equivalent to getSystemService(Context.VIBRATOR_SERVICE).
public static android.service.wallpaper.WallpaperService getWallpaperService()
WallpaperService.
This method is equivalent to getSystemService(Context.WALLPAPER_SERVICE).
public static android.net.wifi.WifiManager getWifiManager()
WifiManager.
This method is equivalent to getSystemService(Context.WIFI_SERVICE).
public static android.view.WindowManager getWindowManager()
WindowManager.
This method is equivalent to getSystemService(Context.WINDOW_SERVICE).
Copyright © 2016. All rights reserved.