Android Wear Data Batching (Android Performance Patterns Season 2 ep4)

7 571
53.7
Следующее
28.04.15 – 34 5714:14
DevBytes: Google Play Services 7.3
Популярные
Опубликовано 23 апреля 2015, 19:22
Writing fast and battery-friendly phone apps is essential for making users happy. But for Android Wear, it is absolutely critical. In this video, Wayne Piekarski shows you some simple tricks to batch up your Android Wear data transfers, helping to make your wearable apps more battery efficient.

Some of the most important ideas are:
- Only requesting network updates when you are certain there might be a change
- Process received data on the phone to minimize content sent to the Android Wear device
- Only send updates to the wearable when things have actually changed
- Combine multiple pieces of data together into single items to minimize protocol overheads
- Put as much code on the phone side as you can, the watch is only used for information presentation and simple user interaction

Watch more Android Performance Patterns here: goo.gl/4ZJkY1
Join the G+ Community here: goo.gl/g7mxmI
Subscribe to the Google Developers channel here: goo.gl/mQyv5L
автотехномузыкадетское