Common Android system services

Source: Internet
Author: User

You can use the getSystemService method of the Activity class to obtain the specified system service.

The getSystemService method has only one String parameter, indicating the system service ID. This ID is unique throughout the Android system.

Android SDK defines these IDs in the android. content. Context class. As follows:

Constants

AccessibilityManager

ACCESSIBILITY_SERVICE

Use the registered event listener to send UI events to users.

It mainly involves the distribution and management of click, focus, text changes, and other events in View, debugging and problem locating of the entire system, etc. This service also needs to be carefully checked.

AccountManager

ACCOUNT_SERVICE

Receive Intents at the time you select

ActivityManager

ACTIVITY_SERVICE

Activity Service

AlarmManager

ALARM_SERVICE

Alarm service

AppOpsManager

APP_OPS_SERVICE

Use with getSystemService (String) to retrieve a AppOpsManager for tracking application operations on the device.

Application in device operation tracking

AudioManager

AUDIO_SERVICE

Audio Service. Manage volume, bell mode, and audio Routing

Descrithadapter

BLUETOOTH_SERVICE

Bluetooth service

CaptioningManager

CAPTIONING_SERVICE

Use with getSystemService (String) to retrieve a CaptioningManager for obtaining captioning properties and listening for changes in captioning preferences.

ClipboardManager

CLIPBOARD_SERVICE

Clipboard Service

ConnectivityManager

CONNECTIVITY_SERVICE

Network Connection Service. It can be queried by other applications. When the network status changes, it can also be broadcast and changed.

ConsumerIrManager

CONSUMER_IR_SERVICE

Infrared signal service. Device for transmitting infrared signals

DevicePolicyManager

DEVICE_POLICY_SERVICE

Device listening service

DisplayManager

DISPLAY_SERVICE

Use with getSystemService (String) to retrieve a DisplayManager for interacting with display devices.

Obtain DisplayManager to interact with the display device.

DownloadManager

DOWNLOAD_SERVICE

Download service. HTTP download request

DropBoxManager

DROPBOX_SERVICE

Obtain the DropBoxManager instance to record diagnostic logs.

InputMethodManager

INPUT_METHOD_SERVICE

The Management Service Program of the input method, including when to enable the input method, and switching the input method.

InputManager

INPUT_SERVICE

Obtain InputManager to interact with the input device.

Icationicationmanager

KEYGUARD_SERVICE

Obtain icationicationmanager to control the keyboard lock

LayoutInflater

LAYOUT_INFLATER_SERVICE

Use with getSystemService (String) to retrieve a LayoutInflater for inflating layout resources in this context.

LocationManager

LOCATION_SERVICE

GPS Positioning Service

MediaRouter

MEDIA_ROUTER_SERVICE

Use with getSystemService (String) to retrieve a MediaRouter for controlling and managing routing of media.

NfcManager

NFC_SERVICE

Use with getSystemService (String) to retrieve a NfcManager for using NFC.

NFC

Icationicationmanager

NOTIFICATION_SERVICE

Responsible for managing and notifying the occurrence of background events. This is glued together with statusbar, and the response icon is usually added to statusbar. You can use this to know what happened in the system background.

NsdManager

NSD_SERVICE

Use with getSystemService (String) to retrieve a NsdManager for handling management of network service discovery

PowerManager

POWER_SERVICE

Power Supply Service

PrintManager

PRINT_SERVICE

Print Service. Print and manage printer and print tasks

SearchManager

SEARCH_SERVICE

Search Service

SensorManager

SENSOR_SERVICE

Sensor Service

StorageManager

STORAGE_SERVICE

System Storage Service

TelephonyManager

TELEPHONY_SERVICE

Telephone Service

TextServicesManager

TEXT_SERVICES_MANAGER_SERVICE

Use with getSystemService (String) to retrieve a TextServicesManager for accessing text services.

UiModeManager

UI_MODE_SERVICE

Use with getSystemService (String) to retrieve a UiModeManager for controlling UI modes.

USB Manager

USB_SERVICE

Use with getSystemService (String) to retrieve a USB Manager for access to USB devices (as a USB host) and for controlling this device's behavior as a USB device.

UserManager

USER_SERVICE

User Management Service. Manage Users on multi-user devices

Vibrator

VIBRATOR_SERVICE

Vibrator Service

Com. android. server.

WallpaperService

WALLPAPER_SERVICE

Wallpaper Service

WifiP2pManager

WIFI_P2P_SERVICE

WIFI-P2P Connection Service

WifiManager

WIFI_SERVICE

WIFI Service

WindowManager

WINDOW_SERVICE

System window service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.