10 Free Sample Applications and SDKs
Most of the ten excellent open source applications and samples in this list are real‐world Android applications that you can install from the Google Play Store. Try an application on your device, and then crack open its source code to see how the gears turn.
The samples folder of the Android SDK holds the source code for the various Android samples, which demonstrate how to use various Android APIs via small, digestible, working examples. You can find tons of simple, straight‐to‐the‐point examples in the Android samples source code.
Incorporating animation into your project or playing an audio file inside your app is easy because API Demos provides examples of both. If you have a lot of ideas but not a lot of time, you should definitely install this demo app on your device and play with its numerous examples to see exactly what they can do.
The samples are easy to use with Android Studio: Just go to File→Import Sample to browse the list of available samples and import them into a new Android Studio project.
The Google I/O app
Every year, throngs of Google developer groupies descend on Moscone West in San Francisco for a multi‐day conference to discuss all things Google. The official conference app is written for Android devices, and the source code serves as an example of how to write good apps for the platform.
K‐9 Mail is a popular email client for Android that used to ship with Android before it became a separate app. It’s an extraordinarily full‐featured open source application, with functionality such as search, push, sync, flagging, signatures, and more.
GitHub Android App
GitHub is a popular community of open source projects that uses the Git Distributed Version Control System (DVCS). The GitHub Android App lets you view, from the palm of your hand, all your favorite GitHub repositories. The application demonstrates how to use the GitHub API as well as the RoboGuice framework.
Facebook SDK for Android
If you’re feeling ambitious, you can tackle the task of creating the next popular Facebook application, even if you don’t know where to begin. Use the Facebook Android SDK to easily integrate Facebook functionality into your application — authorize users, make API requests, and much more. Integrate all the goodness of Facebook without breaking a sweat.
If you’re interested in understanding the basic principles of SQLite without all the fluff of services, background tasks, and other technical concepts, Notepad Tutorial is for you. Although simple in its execution and usage, the source code and tutorial that go along with it are helpful.
Jake Wharton is a prodigious contributor to the Android open source community. Among his many projects is the U+2020 app, which showcases a number of open source libraries including Dagger, Retrofit, Picasso, OkHttp, RxJava, Staggered Grid, and many others.
Lollipop Easter Egg
Were you alive in 2014? Then you’ve probably heard of Flappy Bird. Perhaps even you or someone you love were unlucky enough to succumb to that terrible affliction. Well, now you can unleash it upon everyone you know who has Android 5.0 by tapping a bunch of times on “Android version” in Settings, and then long‐pressing on the resulting lollipop. And if that’s not enough, take a tour of the source code on Android Open Source Project (AOSP).
Building an app from scratch takes time. Android Bootstrap can be a great way to shortcut that process. It includes a full working implementation of Fragments, Fragment Pager, ActionBar via AppCompat, Navigation Drawer, ViewPagerIndicator, Retrofit, GSON, Robotium for integration testing, API Consumption with an API on Parse.com, and much more.
It’s no substitute for understanding how to build Android apps, but it can be a helpful tool to bootstrap your next Android project with a few commonly used tools.
Nearly everything about Android is open source. This means that the source code of the operating system itself, including many of the apps it ships with, is available online for you to browse at the Android Open Source Project (AOSP). The source is massive and you may find it a little difficult to navigate, so you may want to check out the GitHub mirror, which makes it easier to contribute to the source if you’re a github user.