System Services-----Access to Activity Services Getsystemservice

Source: Internet
Author: User

There are many service in the background of Android, they are systemserver open when the system starts, to support the normal operation of the system. The Getsystemservice method is used in the activity to invoke these service, which is an important API for activity. The corresponding object is obtained according to the name passed in, and then converted to the corresponding service object.

The name passed in

The returned object

Description

Window_service

WindowManager

To manage open Windows programs

Layout_inflater_service

Layoutinflater

Gets the view defined in the XML

Activity_service

Activitymanager

Managing the system state of an application

Power_service

Powermanger

Service of power supply

Alarm_service

Alarmmanager

Services for the alarm clock

Notification_service

Notificationmanager

Service for status bar

Keyguard_service

Keyguardmanager

Service for keyboard lock

Location_service

Locationmanager

Location of the service, such as GPS

Search_service

Searchmanager

Search for services

Vebrator_service

Vebrator

Mobile phone Shake Service

Connectivity_service

Connectivity

Network-connected Services

Wifi_service

Wifimanager

Wi-Fi Service

Telephony_service

Teleponymanager

Telephone service

Picture appreciation:


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

System Services-----access to Activity Services Getsystemservice

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.