Latest Android Aptitude Question SOLUTION: What are the various return values of onStartCommand(), and when to use what?
Options
1) START_STICKY - in case if android stops our service forcefully, then restart service by se
What are the various return values of onStartCommand(), and when to use what?
Options
1) START_STICKY - in case if android stops our service forcefully, then restart service by sending intent null
2) START_NOT_STICKY - in case if android stops our service forcefully, then don't restart, until user restarts it.
3) START_REDELIVER_INTENT- in case if android stops our service forcefully, then restart service by sending re-sending the intent.
4) all options are true