Tek Eye Logo

Tek Eye

Android Example Projects

The list of Android sample projects in the table below illustrate various Android programming techniques. All the projects have been tested in Android Studio. Studio is a freely available Integrated Development Environment (IDE), a package used for writing software, in this case Android Apps. All these Android example project tutorials come with the source code in a zip archive. The example source code is ready to run in Android Studio. Extract the sample App project and use Android Studio import. How? Here's a quick guide:

  1. Extract the zip file contents to the required location (preserving directory structure).
  2. Run Studio and use the Import project option on the Welcome screen. (To get to the Welcome screen close any open projects.)
  3. Select the top level build.gradle file in the project directory.
  4. Accept the sync Gradle message and wait for the IDE to finish configuring the project.
  5. When the Run icon (play button) on the toolbar goes green the example project is ready to use.

(Import instructions also appear in each zip archive in the file instructions.txt.)

Mike Bugdroid the Android Logo

Free Projects to Illustrate Android Programming Techniques

This list of Android example projects will expand as other Android tutorials and code examples are added to the site. A full list of all the Tek Eye Android articles can be found in the Index. A few of the Android examples were contributed to the O'Reilly Android Cookbook. The following table contains:

  • A link to the tutorial article for each Android example project.
  • A link to a zip file containing the source code for the example project that can be extracted and then imported into Studio.
  • A link to a compiled version of the example as a signed installable Android packages (.apk file) on Google Play (if available). Ready for executing immediately on an Android device or emulator.

List of Free Android Example Projects

Article Source Package
Your First Android Java Program HelloWorld.zip soon!
Start a Second Android Activity secondscreen.zip soon!
Android String Resources Gotchas stringsxml.zip soon!
Add a Simple List to an App simplelist.zip soon!
Change ListView Text Color in Android redlist.zip soon!
Limit EditText Input with Attributes and TextWatcher percentage.zip soon!
Android AsyncTask Class Helps Avoid ANRs slowprocess.zip soon!
Add a Border to an Android Layout layoutborder.zip soon!
No Tooltips for Android - Use Hint hintexample.zip soon!
Different Ways to Code Android Event Listeners codinglisteners.zip soon!
Testing Android's Activity Lifecycle lifecycletesting.zip soon!
Saving Activity State in an App when it's Interrupted restorestate.zip soon!
Use the ZXing Barcode Scanner in an Android App scanbarcode.zip soon!
Android Portrait and Landscape Screen Layout Example portrait-landscape.zip soon!
Animated Images in Android lights.zip lights.apk
ImageButton Graphics with Inkscape buttonpress.zip soon!

See Also

There are lots of free Android samples that come with the Android SDK, see the list in the article Android SDK Samples.

Author:  Published:  Updated:  

ShareSubmit to TwitterSubmit to FacebookSubmit to Google+Submit to LinkedInSubmit to redditPrint Page

markdown CMS Small Logo Icon ↓markdown↓ CMS is fast and simple. Build websites quickly and publish easily. For beginner to expert.

Articles on:

Android, HTML, VPS, Computing, IT, Computer History, ↓markdown↓ CMS

Free Android Sample Projects:

Android Examples, Android UI Examples