AnalyticsService

  • AnalyticsService is an Android Service used by Google Analytics that requires declaration in the AndroidManifest.xml file.

  • The service inherits numerous constants and methods from android.app.Service, android.content.Context, and android.content.ComponentCallbacks2 for lifecycle management, system interaction, and memory handling.

  • It provides public methods like callServiceStopSelfResult for stopping the service and onBind for client interaction.

  • The underlying android.content.Context class offers extensive functionalities for accessing application resources, managing permissions, interacting with components, performing file and database operations, and accessing system services.

public final class AnalyticsService extends Service
implements ServiceUtil.AnalyticsService

A Service used by Google Analytics. It will only be used when the service is correctly declared in AndroidManifest.xml:

<manifest>
   <application>
     <!-- ... -->

     <service android:name="com.google.android.gms.analytics.AnalyticsService"
         android:enabled="true"
         android:exported="false"/>

     <!-- ... -->
   </application>
 </manifest>
 

Inherited Constant Summary

Public Method Summary

boolean
IBinder
onBind(Intent intent)

Inherited Method Summary

Public Methods

public boolean callServiceStopSelfResult (int startId)

public IBinder onBind (Intent intent)