onStartCommand

public Integer onStartCommand(Intent intent, Integer flags, Integer startId)

Creates a new notification of the app

Return

the constant START_NOT_STICKY

Parameters

intent

For communication between classes

flags

For extra parameters

startId

ID of the startCommand