Android Example Projects
The lists of Android sample projects in this article illustrate various Android programming techniques. Scroll down or click on these topics for free Android example projects on:
- General Android Programming Topics
- List Handling (ListView) projects in Android
- Example Projects on the User Interface (UI) in Android
The Android projects listed below cover a wide range of subjects. All the following projects have been tested in Android Studio. Studio is a free Integrated Development Environment (IDE) provided by Google for Android app development. (An IDE is a software environment used for writing software, in this case Android apps).
All these free Android example projects come with the source code in a zip archive for importing into Android Studio. A tutorial web page provides a lesson for each of the projects. 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:
- Extract the zip file contents to the required location (preserving directory structure). Studio does not move the project.
- Run Android Studio and use the Import project option. Import is on the New option from the File menu, or on Studio's Welcome screen. (To get to the Welcome dialog close any open projects.)
- Select the project directory, or the top level build.gradle file in the project directory.
- Accept the sync Gradle message (if displayed) and wait for the IDE to finish configuring the project (look at the status bar at the bottom of Studio).
- When the Run icon (play button) on the toolbar goes green the example project is ready to use.
When opening projects in updated versions of Studio import errors can occur. See the article Opening Pre-Android Studio 3 Projects for tips on resolving errors caused by updates to Studio.
(Import instructions also appear in each zip archive in the file instructions.txt.)
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 tables contain:
- 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.
- In the pipeline: A link to a compiled version of the example as a signed installable Android packages (.apk file). Ready for executing immediately on an Android device or emulator.
|Add a Simple List to an App||simplelist.zip||planned|
|Change ListView Text Color in Android||redlist.zip||planned|
|Two Line Lists in Android||two_line_listactivity.zip||planned|
|Multi Line ListView Entries in Android||multi-line.zip||planned|
|Read the Selection From a Multi Line ListView||read-multi-line.zip||planned|
- There are free Android Developer online samples for the Android SDK available via Studio, see the article Android SDK Samples.
- View the Tek Eye full Index for other Android articles and other interesting technical articles.
- There are samples filterable by language and technology type on the Android Developers website.
Leo Stalin on January 9, 2013 at 10:56 am said: I am an Android programming beginner.
Tek Eye on January 9, 2013 at 4:45 pm in reply to Leo Stalin said:
- Install Android Studio – https://tekeye.uk/android/android-studio-windows-install
- If not using you own device setup an AVD – https://tekeye.uk/android/set-up-an-android-virtual-device-for-app-testing
- Run your first Hello World app – https://tekeye.uk/android/your-first-android-java-program
- Try the SDK sample apps – https://tekeye.uk/android/android-sdk-samples
- Run through the other tutorials - see the full list in the Index or follow some of the tutorials in order, see Android App Development Course
Arun kumar G on February 9, 2013 at 2:41 pm said: Hello Sir. This is very useful for me as I’m trying to get into the Android field. I need your help a lot sir. Definitely I’ll utilize you a lot. Thank you Sir.
Bimal on February 23, 2014 at 6:00 am said: Hi! I’m very new in android. I’m a VB developer. Now I need a simple project as follows. How can I get this project. I need source code with full comment. After reading the comment I can compile it my self. I use Android Studio. Thank you.
The project should have 5 editboxes, 1 combo and 1 command button. User will enter numbers in EditBox1. The length may be 16-18 numbers. Then user will select a item from combo. Combo should have 5 items. Then user will click on the button. In click event of the button, I want first 5 number need to go in EditBox2. Second 4 number need to go in EditBox3. Rest of the number need to go in EditBox4. In the last textbox number length may be 7,8 or 9. After breakdown of the string I want to find sum of all EditBoxes: Editbox1 + Editbox2 + EditBox3.
Then I want to subtract a number from the sum value. (Editbox1 + Editbox2 + EditBox3) – a number like 5560 or 6612 or 4258 etc. The subtraction number may be variable, because it depends on list item selected by user. Then I want the result in a Editbox5.
I need this project in email. My email is email@example.com. If it is payable I will pay for this.
Tek Eye on February 24, 2014 at 8:35 am in reply to Bimal said: If you are familiar with VB take a look at these alternative Android programming IDEs:
- B4A – https://www.b4x.com/b4a.html (Previously called Basic4Aandroid)
- NS Basic – https://www.nsbasic.com/
- Monkey 2 – http://monkeycoder.co.nz/
For a longer list of IDEs see List of IDEs for Android App Development.
Vladislav Bauer on August 10, 2014 at 11:56 am said: A lot of useful open source libraries, tools and projects could be found here: https://android-arsenal.com/
Tek Eye on August 11, 2014 at 10:42 am in reply to Vladislav Bauer said: Thanks for the link, a good place for Android developers to browse for components and other useful items.
Arya on October 4, 2014 at 5:45 am said: Good one.
Sushmita Singh on October 1, 2015 at 10:00 am said: Hey I want an shopping site related mini project.
Asad on October 8, 2016 at 3:39 pm said: How to open zip files in android studio?
Tek Eye on October 10, 2016 at 7:26 am in reply to Asad said: Extract the files first. A good utility for zip files is 7-Zip. Instructions for Studio are at the top of this page.
Geethadevi on January 29, 2017 at 7:39 am said: Useful to illustrate the Android programming techniques.
Author:Daniel S. Fowler Published: Updated: