GetSystemService is an important API for Android. It is a method of Activity. It retrieves the corresponding Object based on the input NAME and converts it to the corresponding service Object. The following describes the system services.
Input Name |
Returned object |
Description |
WINDOW_SERVICE |
WindowManager |
Manage open window programs |
LAYOUT_INFLATER_SERVICE |
LayoutInflater |
Get the view defined in xml |
ACTIVITY_SERVICE |
ActivityManager |
Manage the system status of an application |
POWER_SERVICE |
PowerManger |
Power Supply Service |
ALARM_SERVICE |
AlarmManager |
Alarm service |
NOTIFICATION_SERVICE |
Icationicationmanager |
Status Bar Service |
KEYGUARD_SERVICE |
KeyguardManager |
Key lock Service |
LOCATION_SERVICE |
LocationManager |
Location services, such as GPS |
SEARCH_SERVICE |
SearchManager |
Search Service |
VEBRATOR_SERVICE |
Vebrator |
Mobile phone vibration Service |
CONNECTIVITY_SERVICE |
Connectivity |
Network Connection Service |
WIFI_SERVICE |
WifiManager |
Wi-Fi Service |
TELEPHONY_SERVICE |
TeleponyManager |
Telephone Service |