The original, Google official blog. Http://android-developers.blogspot.sg/2015/04/new-android-code-samples.html
Here are some examples of Android wearable, NFC, screenshots that have been submitted to the Google-like warehouse on GitHub. Https://github.com/googlesamples
Here are some code snippets.
Xyztouristattractions
Https://github.com/googlesamples/android-XYZTouristAttractions
This example mimics a real-world mobile and wearable application. It has a more refined design and provides a useful sample of how an app communicates with a wearable device.
The program itself mimics the experience of going to a tourist mecca, and it notifies the user when it is close to the Mark's point. At the same time, the wearing component shows the pictures and brief information of the tourist spots. For nearby tours the display on the Gridviewpager UI component provides quick action.
Deviceowner
Https://github.com/googlesamples/android-DeviceOwner
A device owner is a dedicated equipment manager that can control device security and configuration. This sample column uses Devicepolicymanager to demonstrate how to use the properties of the device, including the global configuration (e.g., automation time and time zone configuration) and setting the default launcher.
Nfcprovisioning
Https://github.com/googlesamples/android-NfcProvisioning
This sample shows how to use NFC to provide a device and a device owner. By default, this example installs the same device as the Deviceowner. You can re-write the configuration to connect other device owners.
NFC Beamlargefiles
Https://github.com/googlesamples/android-BeamLargeFiles
Demonstrates how to transfer large files by using Android Beam 4.1 or later. With the NFC initialization handshake, the file transfer will be done to establish an indirect communication channel, like Bluetooth or wif Direct
Screencapture
Https://github.com/googlesamples/android-ScreenCapture
This mediaprojection API is added on Android Lollipop, you can easily screenshot or record system sounds. The example shows how to use the API to display a real-time screenshot on a surfaceview.
Another happy thing is that the Santa Tracker Android app includes 3 games, 2 watch-faces, and other resources that are recently open source on GitHub.
Personal Summary: Learning new technology is best to look at the official articles and code, very practical. The most useful I think is the large file transfer and screenshot code.
Although the above English is short, I am Chinese limited, have questions please point out. Thanks.
Google officially provides a useful Android sample program, a new technology worth learning