It contains storage and retrieval of values using both, the Android Framework API and the InstantApps Play Services API. It is NOT the goal of this sample to show the best way to write the game logic, load resources, etc. google play services, google mobile ads The sample plays a video. It includes implementations of client Activities with views that should be autofilled, and a Service that can provide autofill data to client Activities.Complication Test Suite is a set of complication providers that provide placeholder data and it can be used to test how different types of complications render on a watch face.A sample that shows how you can record voice using the microphone on a wearable and play the recorded voice or an mp3 file, if the wearable device has a built-in speaker. This means, there is no need to bundle the font as an asset.This sample demonstrates usage of EmojiCompat support library. "Hello World" activity with a banner at the bottom of its layout.This sample demonstrates how to request and display an ad from Ad To view the latest changes, please visit the Releases page. It records a spoken request from the connected microphones, sends it to the Google Assistant API and plays back the Assistant's spoken response on the connected speaker.Hello GL2 is an Android C++ sample that draws a triangle using GLES 2.0 API. It shows how to check and request permissions at runtime, handle backwards compatibility using the support library and how to declare optional permissions for M-devices only.This basic sample shows runtime permissions available in the Android M and above.
Examples are given for registering both links both statically in XML, as well as dynamically at runtime.This sample demonstrates the use of the Autofill Framework. Sensor-based peripheral sample using Android Things Location is retrieved via FusedLocatinProvider which retrieves coordinates from the phone or Wear depending on whether the phone is disconnected or not and whether the Wear device has a GPS chip.Using the OPEN_DOCUMENT intent, a client app can access a list of Document Providers on the device, and choose a file from any of them.This sample shows how to implement a simple documents provider using the storage access framework available in Android 4.4. This can be easily replaced with a SurfaceView to run on older devices.Demonstrates how to create a custom media route provider.Sample demonstrating how to use the MIDI API to receive and process MIDI signals coming from an attached device.Sample demonstrating how to use the MIDI API to receive and play MIDI messages coming from an attached input device (MIDI keyboard).This sample demonstrates the use of the multi-window API available in Android N. It shows the use of new Intent flags and AndroidManifest properties to define the multi-window behavior. a PublisherInterstitialAd object, preload an interstitial, and then display it. interstitial and begin the countdown over again.Sample that shows applying tinting and color filters to Drawables both programmatically and as Drawable resources in XML. activity displaying a countdown timer. On most android devices, there is a optimized audio path that is tuned up for low latency purpose. Secondary screen simulation can also be enabled from the "Developer Options". The color and blend mode can be changed from the UI to see the effect of different options.This sample demonstrates ways to move a view in the z-axis using This sample demonstrates a drag and drop action on different shapes.
This sample uses the new Android Studio CMake plugin with C++ support.Hello JNI is an Android sample that uses JNI to call C code from a Android Java Activity. You can use this library to prevent your app from showing missing emoji characters in the form of tofu (□). Switch the sample app into multi-window mode to see how it affects the lifecycle and behavior of the app.Native Activity is an Android sample that initializes a GLES 2.0 context and reads accelerometer data from C code using Native Activity. A color state list is referenced as the tint color, which defines colors for different states of a View (for example disabled/enabled, focused, pressed or selected).
The recorder / players created are not in fast audio path. Android Things supports three boards: the Intel Edison, the NXP Pico i.MX6UL and the Raspberry Pi 3. It also covers Notifications on Wear 1.+ and Wear 2.0.Sample demonstrating the use of RecyclerView to layout elements with a LinearLayoutManager and with a GridLayoutManager. Immersive mode gives the user the ability to show/hide the status bar and navigation bar with a swipe.To try, click the "Toggle immersive mode" button, then try swiping the bar in and out!This sample app demonstrates how to use the Cookie API. It creates an app with a single