Android Samples

ActivityLifecycle Demos

Four sample projects that cover advanced activity and application lifecycle scenarios in Android.

Android 5.0 Theme Switcher

Use this sample to try out the different Material Design themes in Android Lollipop and later.

Android API Demo

Includes a variety of small applications that illustrate the use of various Android APIs.

Android P Mini Demo

Demonstrates the display cutout and image notifications in Android P.

Android Wear Getting Started

Demonstrates how to create your first Xamarin.Android Wear app.

App Restriction Schema

Demonstrates using a profile owner to set app restrictions in Android.

AppShortcuts Sample

This sample demonstrates how to use the Launcher Shortcuts API.

AutofillFramework Sample

This sample demonstrates how to use the Autofill Framework API.

Calendar Demo

This example shows how to use the calendar API to list calendars and events.

CommitContentSample

Demonstrates how to write an keyboard which sends rich content.

Contact Manager

This sample demonstrates how to interact with Android's contact manager.

ContactsProvider Demo

Demonstrates how to use ContactsProvider and the device owner's profile in Android.

Delayed Confirmation

Demonstrates how to send and receive messages to a connected Wearable using the new Wear APIs.

Direct Boot Sample

Demonstrates how to store data in a device-protected storage.

DocumentCentricApps

This sample demonstrates the basic usage of the new Document-Centric Apps API.

DocumentCentricRelinquishIdentity

Demonstrates how to change the label of a document activity in recents using Document-Centric API.

DownloadableFonts Sample

This sample demonstrates how to use the Downloadable Fonts feature introduced in Android O.

Elevation Basic

This sample demonstrates two alternative ways to move a view in the z-axis.

Elevation Drag

This sample demonstrates a drag and drop action on different shapes.

ElizaChat

Demonstrates how a personal assistant may work on a wearable device.

FlashCardPager

A math problem flash card deck that demonstrates how to use ViewPager and PagerTabStrip with fragments.

Fragments Walkthrough

Sample code for the Fragments Walkthrough

FusedLocationProvider Sample

This sample provides an example of gathering location data using the FusedLocationProvider.

HelloSwipeViewWithTabs

Demonstrates how to use ViewPager and ActionBar together.

ICS Tabs Demo

This example shows how to use tabs from the Action Bar in Ice Cream Sandwich.

Job Scheduler

This sample demonstrates the new JobScheduler API.

KitKat

This sample provides an overview of new features of Android 4.4 "KitKat".

Live Wallpaper Demo

This sample demonstrates various forms of live wallpapers.

LocationUpdatesForegroundService Sample

This sample demonstrates how to use the Location API to get locations updates

LocationUpdatesPendingIntent Sample

This sample demonstrates how to use the Location API.

MultiWindow Playground Sample

Demonstrates creating activities in various multi-window configurations.

NavigationDrawer

This example illustrates a common usage of the DrawerLayout widget in the Android support library.

Notepad Sample (Mono.Sqlite)

This sample shows a simple note taking application.

NotificationChannels Sample

This sample demonstrates the new Notification Channels system in Oreo.

PictureInPicture Sample

This sample demonstrates the new Picture in Picture display mode in Oreo.

RecyclerViewer

Demonstrates the use of `CardView` and `RecyclerView` widgets in Android.

ShareActionProvider Demo

This example shows how to use the ShareActionProvider to share an image using Ice Cream Sandwich.

SkeletonWear

Demonstrates the basic outline of a wearable project, including Gridviews on Wearable devices.

Storage Client

Demonstrates how to let users choose a file via the system's file browser.

Storage Provider

Demonstrates how to manage documents and expose them to the Android system for sharing.

Swipe to Refresh

Demonstrates how to implement the swipe to refresh pattern.

TimePickerDemo

This sample demonstrates how to add a TimePicker to your app

Touch in Android (Completed Sample)

Working with touch events and gestures in Android.

Touch in Android (Walkthrough)

Starting point for the walkthrough about working with touch events and gestures in Android.

TreePager

A simple image gallery app that demonstrates how to use ViewPager and PagerTabStrip.