OpenSource For You

A Bird's Eye View of Android System Services

Android is gaining unpreceden­ted momentum in the smartphone and tablet market. This huge success is usually attributed to factors like the open ecosystem, the choice of Java as the applicatio­n programmin­g language, the choice of the Linux kernel, etc. A l

-

fn Android applicatio­ns, ‘services’ are typically used to perform background operations that take a considerab­le amount of time. This ensures faster responsive­ness to the ‘main’ thread Ea.k.a. the rf threadF of an applicatio­n, with which the user is directly interactin­g. The life cycle of the ‘services’ used in applicatio­ns is managed by the Android cramework, i.e., these services have ‘startServi­ceEF’, ‘bindServic­eEF’ and ‘stopServic­eEF’ calls that are called when an activity Eor some other componentF starts, binds or stops a service. The Android system might forceJstop a service when available memory is low; http://developer.android.com/guide/ components/services.html gives a detailed descriptio­n of the Android ‘service’, which is an applicatio­n component.

System services

The ‘system’ services play a key role in exposing the lowJ level functions of the hardware and the Linux kernel to the highJlevel applicatio­ns. The ‘system’ services live from boot to reboot, i.e., the entire life of the system. There are about TM system services in the gelly Bean release of Android. Table N shows a list of some of the system services, the names of which are selfJexpla­natory. ft would easily take pages to explain the functional­ity of each one of these, which is beyond the scope of this article.

 ??  ??

Newspapers in English

Newspapers from India