Tek Eye Logo

Tek Eye

Android Example Projects

The lists of Android sample projects in the tables 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.

Mike Bugdroid the Android Logo

All these Android example project tutorials come with the source code in a zip archive. These free Android samples are divided into general features, list handling (ListView) projects, and User Interface (UI) 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:

  1. Extract the zip file contents to the required location (preserving directory structure). Studio does not move the project.
  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.)

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.

List of Free Android Example Projects

Article Source Package
Your First Android Java Program HelloWorld.zip planned
Start a Second Android Activity secondscreen.zip planned
Android String Resources Gotchas stringsxml.zip planned
Android AsyncTask Class Helps Avoid ANRs slowprocess.zip planned
Different Ways to Code Android Event Listeners codinglisteners.zip planned
Testing Android's Activity Lifecycle lifecycletesting.zip planned
Saving Activity State in an App when it's Interrupted restorestate.zip planned
Use the ZXing Barcode Scanner in an Android App scanbarcode.zip planned
Animated Images in Android lights.zip lights.apk
Web Search Example In Android websearch.zip planned
Android Dice Roller Source Code android_dice_roller.zip Dice.apk
Email Contact Form Using ACTION_SEND send-email-example.zip planned
Changing the Font for Android TextViews fonts.zip planned

List of Free Android Example List Handling Projects

Article Source Package
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

List of Free Android Example UI Projects

Article Source Package
Displaying a Bitmap in Android imageview-bitmap.zip planned
Add a Border to an Android Layout layoutborder.zip planned
No Tooltips for Android - Use Hint hintexample.zip planned
Limit EditText Input with Attributes and TextWatcher percentage.zip planned
Android Portrait and Landscape Screen Layout Example portrait-landscape.zip planned
ImageButton Graphics with Inkscape buttonpress.zip planned
Android 9 Patch Image Files for Buttons and Borders ninepatch.zip planned
About Box in Android App Using AlertBuilder aboutbox.zip planned
Swipe View Android Example for Screen Paging text_swiper.zip planned
Load Values into an Android Spinner loading_spinner.zip planned
Changing Android Spinner Text Size with Styles styling_spinner.zip planned
Context Menu Example for Android context-menu.zip planned
SeekBar Demo for Android seekbar-demo.zip planned

See Also

  • There are lots of free Android samples that come with the Android SDK, see the list in the article Android SDK Samples.
  • View the Tek Eye full Index for other Android articles and other interesting technical articles.

Archived Comments

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:

  1. Install Android Studio – http://tekeye.uk/android/android-studio-windows-install
  2. If not using you own device setup an AVD – http://tekeye.uk/android/set-up-an-android-virtual-device-for-app-testing
  3. Run your first Hello World app – http://tekeye.uk/android/your-first-android-java-program
  4. Try the SDK sample apps – http://tekeye.uk/android/android-sdk-samples
  5. 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 gpbimal@yahoo.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:

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: http://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:  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 Projects and Samples:

Android Examples, Android List Examples, Android UI Examples