onStart

open fun onStart(intent: Intent, startId: Int)

This is the old onStart method that will be called on the pre-2.0 platform.

Parameters

intent

The Intent supplied to startService(Intent), as given. This may be null if the service is being restarted after its process has gone away, and it had previously returned anything except START_STICKY_COMPATIBILITY.

startId

A unique integer representing this specific request to start. Use with stopSelfResult(int).

See also

android.app.Service#onStart(android.content.Intent, int)