Tuesday, February 25, 2014
Who can explain the mechanisms! ! getSystemService ()??
I want to know android in getSystemService () method is how it works.
For example (with questions):
Android in the Vibrator class.
Get Examples: Vibrator mvibrator = (Vibrator) getSystemService (VIBRATOR_SERVICE); not get through the new instance of this I know, because Vibrator is an abstract class.
But (Vibrator) getSystemService (VIBRATOR_SERVICE); another is how to do?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Vibrator is the platform vibration systems, services with the power management system PowerManagerService, ActivityManagerService or audio services, as provided by the system (or not, as some java layer, some c / c + + layer), are started after the system boot , and in this way is a cross-process call service provided by the system.
Their work is the use of inter-process communication Binder, because the system services are running in the framework of the process system_process during and after start system services are registered to run in a separate process and framework thread inside.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment