Slides — [ Ссылка ]
Workshop #1 — [ Ссылка ]
Workshop #2 — [ Ссылка ]
Workshop #3 — [ Ссылка ]
Workshop #4 — [ Ссылка ]
Github Workshop Repo — [ Ссылка ]
Homework – [ Ссылка ]
Feedback form – [ Ссылка ]
Android Academy Minsk Telegram – [ Ссылка ]
Android Academy Moscow Telegram – [ Ссылка ]
0:00:00 Beginning
0:01:00 Translation start
0:04:10 Agenda
---
0:05:01 Use case (Music App)
0:06:36 Android services
0:07:20 Common scenarios
0:07:35 What is a service
0:08:50 Type of Services
0:09:24 Started service
0:10:00 Creating a started service
0:10:35 Extend Service class
0:11:10 Register it in the manifest
0:11:45 Override th onStartCommand
0:12:35 START_STICKY
0:13:35 START_DELIVER_INTENT
0:14:20 START_NOT_STICKY
0:15:05 flags
0:16:37 startId
0:17:54 Use cases
0:20:54 Service callbacks
0:21:34 Start Service
0:22:21 Lifecycle
0:24:05 Stop Service A) Context.stopService(intent)
0:24:05 Stop Service B) in service itself
0:25:43 Summary
0:26:36 Questions ?
0:31:32 Workshop #1
---
0:54:00 Things To Remember
0:54:40 What should we do?
---
0:54:50 IntentService
0:56:43 How to explain what is IntentService on "kolenki"
0:57:17 Creating and using an IntentService
0:57:50 Register in AndroidManifest.xml
0:58:10 Do work in IntentService
0:57:18 Creating and using an IntentService
0:58:43 Start IntentService
0:59:00 Summary
0:59:38 Questions ?
---
1:03:20 Bound Service
1:03:55 Creating a Bound Service
1:04:26 What is Binder
1:06:09 Let’s create Bound service via Extending a Binder class
1:06:20 Let's Look At General Scheme How It Works
1:06:28 General scheme
1:07:57 Create a Binder in the Service
1:09:45 Make the caller implement ServiceConnection
1:12:10 Bind the Service
1:15:13 Unbind the Service
1:16:10 Rebind the Service
1:16:57 Destroy the Service
1:17:18 Use the Service
1:17:51 Started Bound Service
1:20:21 Summary
1:21:14 Questions?
1:23:22 = Workshop #2 =
---
1:44:16 Restrictions or Limitations
1:44:38 Music App example
1:45:40 Battery Optimizations
1:46:16 Doze Mode
1:49:51 Doze Mode Restrictions
1:50:43 Optimizing for Doze and App Standby
1:52:51 And then there is Oreo
1:52:57 Behavioural changes in Oreo
1:52:56 Foreground Service
1:55:03 Why?
1:55:59 What is process priority?
1:56:12 Pyramid
1:58:50 Show me the code
2:00:20 startService vs. startForegroundService
2:01:57 Target 28
2:02:24 Get back to our lovely limitations
2:02:30 App Standby Buckets (Android P)
2:02:45 App Standby Buckets
2:03:33 Proposed solution
2:05:14 JobIntentService
2:05:50 Migrating from IntentService
2:06:14 Migrating to JobIntentService
2:06:45 When will scheduled job run?
2:09:07 Last But Not Least
2:09:40 DontKillMyApp
2:10:45 Summary
2:11:52 Questions ?
2:15:20 = Workshop #3 =
2:37:00 Hackaton 2018 video
---
2:41:42 Pending and scheduled tasks
2:42:19 Scheduling tasks
2:42:49 Using an alarm to start an IntentService
2:44:17 Doze mode
2:45:30 WorkManager
2:50:20 Creating and using a Worker
2:50:29 Dependencies
2:51:30 Extend IntentService
2:52:47 Creating of WorkRequest
2:53:55 Enqueue WorkRequest
2:54:40 InputData for your Worker
2:55:43 What about output data?
2:56:17 Chaining
2:57:52 Parallel
2:59:12 Questions ?
3:03:50 = Workshop #4 =
3:23:57 Outro
3:25:04 Мега ссыль от Йонатана про сервисы
[ Ссылка ]
Ещё видео