AnalyticsJobService

  • AnalyticsJobService is a specific JobService class used by Google Analytics that requires the BIND_JOB_SERVICE permission in AndroidManifest.xml.

  • It inherits functionality from JobService, Service, Context, and ComponentCallbacks2, providing standard service and context capabilities.

  • Key public methods like onStartJob and onStopJob handle job lifecycle events and return a boolean.

  • The Android Context class provides extensive methods for accessing resources, managing file storage, interacting with components, handling permissions, and accessing system services and information.

  • The provided text details a comprehensive list of Context methods covering areas such as file operations, permissions, broadcasts, services, activities, configuration, and wallpaper management.

public final class AnalyticsJobService extends JobService
implements ServiceUtil.AnalyticsService

A JobService 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.AnalyticsJobService"
         android:permission="android.permission.BIND_JOB_SERVICE"
         android:enabled="true"
         android:exported="false"/>

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

Inherited Constant Summary

Public Method Summary

boolean
boolean
boolean

Inherited Method Summary

Public Methods

public boolean callServiceStopSelfResult (int startId)

public boolean onStartJob (JobParameters params)

public boolean onStopJob (JobParameters params)