Google officially provides a useful Android sample program, a new technology worth learning

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.