1. Service runs without a UI,
2. task (thread), still in main process
refer to the chapter 9.
3. how to crate/start/stop
4. Binding service to activity.
@ "onbind" method need be implement in Service.
foreground activity
@ startForeground(NOTIFICATION_ID, notification);
stopForeground(true);
Service is called by using "StartService" / "stopService"
Service is entry via "onStartCommand"
===Creating New Asynchronous Tasks
===intent service
No comments:
Post a Comment