Android Tutorial Article List

Android is so popular today, there are billions of android devices in the market from mobile phone to television. There are also so many android app exist in the app store market. If you want to learn how to develop android app, please read this tutorial, it will provide you a lot of examples about android app development.

Startup

  1. Android Frequently Asked Questions
    Collect all popular android questions from internet, and provide short and effective answers.
  2. Android Hello World Example
    This article will show you how to use android studio to create android Hello World example. It also explains the main example files and their role and relation.
  3. Android LogCat And Logging Best Practice
    This article will show you how to write log in android application. It also tell you how to get crashed log data from logcat to text file using adb.

Android Studio

  1. Android Development Environment Setup
    Before you can develop android app, you should first setup android development environment. This article will show you how to do that step by step.
  2. How To Create Android Virtual Device (AVD)
    Before debugging and testing android application, you should create an android virtual device ( AVD ) to start a simulator. You can specify special configurations for your avd, and then start it for debugging and executing applications.
  3. How To Create New Android Studio Project
    This article will show you how to create a new android studio project. You should read article Setup Android App Development Environment first to learn how to install android studio in your computer.
  4. How To Open, Close, Save Android Studio Project
    This article will show you how to Open, Close or Save android studio project. It will also show you how to browse project folder or file’s physical hard disk directory in android studio.
  5. How To Create Activity In Android Studio
    Activity is a very important component in android application development. It represent a screen which is used to interact with phone user.
  6. How To Create Java Class In Android Studio
    In android development, java class is commonly used to implement business logic process such as database access, send email, send short message etc. We always use one java class to encapsulate some related functions.
  7. How To Run / Debug Android App In Android Studio
    Android applications can be executing or debugging in either virtual device or real device. But it can be executed or debugged in only one device at the same time. This article will show you how to do that.
  8. Debug Android App With Android Studio Examples
    When you execute an Android app after coding, you may always meet bellow error in device simulator. The simulator popup a dialog to tell you the android application has been stopped.
  9. How To Create Android App Publishable APK File
    When you finish your Android app coding and testing, if you want to publish it to google play store, you should create a publishable apk file. This article will show you how to create publishable apk file step by step.
  10. How To Enable USB Debugging Mode On Android Device
    If you want to run android app automation test using Appium in physical android device such as phone or pad, you need to first enable USB debugging mode in your physical android device and then connect it with your PC using data line.
  11. How To Use Android Debug Bridge (ADB)
    ADB is a powerful tool, it is abbreviation of Android Debug Bridge. It is located in %ANDROID_HOME%\platform-tools like C:\Users\Jerry\AppData\Local\Android\sdk\platform-tools. It provide a lot of useful sub commands for android developers to operate between android physical or virtual device and computer.
  12. Android ADB Install / Uninstall App Examples
    This example show you how to install / uninstall android apps use android debug bridge (ADB) or android device control panel.
  13. How To Define Custom Color Variables
    Besides android built-in color constants, you can also create custom color variables yourself, this article will tell you how to do that.
  14. How To Read String Value Array From strings.xml In Android
    This example show you how to define string value and string array value in android strings.xml. It also explain how to read those string values in both xml file or java source code.
  15. How To Auto Import All Class In Android Studio
    This article will tell you how to configure android studio to automatically import all classes in java source code.
  16. How To Change Minimum Sdk Version In Android Studio
    This article will tell you two methods to to change both android minimum sdk version and target sdk version in android studio. 

Android Activity

  1. Android Explicit Implicit Intent Example
    This example introduce explicit and implicit intent for android. It also demontrate how to create and use explicit and implicit intent to start Activity.
  2. Android Activity Lifecycle Example
    This article introduce android activity life cycle and contains examples to show different life cycle methods of activity.
  3. Android Save Retrieve Activity Instance State Example
    This article will show you how to store and retrieve activity instance state data with examples.
  4. Activity Launch Mode – Standard SingleTop Example
    This article contains examples to introduce use activity in standard and singleTop launch mode.
  5. Activity Launch Mode – SingleTask SingleInstance Example
    This article introduce other two singleTask and singleInstance activity launch mode with examples.
  6. Android Activity Best Practice
    This article introduce three best practices when develope andorid activity.

Android Broadcast

  1. Android Broadcast Overview
    Introduce android broadcast principle, type and receiver registration with example code.
  2. How To Register BroadcastReceiver In Android Activity
    This example show you how to register / unregister broadcast receiver in android acivity programmatically. It also shows how to open android settings panel programmatically.
  3. How To Register Android BroadcastReceiver Statically
    This example tell you how to register android broadcast receiver statically in AndroidManifest.xml file.
  4. Android Keep Broadcast Receiver Running After Application Exit
    This example tell you how to run broadcast receiver in android background service object.
  5. Android Send Custom Broadcast Example
    This example demo how to implement both normal and ordered custom andoird broadcast. It also shows how to abort broadcast in ordered broadcast receiver chain.
  6. Android Local Broadcast Manager Example
    This example show you how to use android.support.v4.content.LocalBroadcastManager to send in-app broadcast internally.
  7. Android Force Logout Use Service And Broadcast Example
    This example shows how to use background service and broadcast receiver to implement force logout in android login feature.

Android Content Provider

  1. Android Content Provider And ContentResolver Example
    Introduce android content provider and contenresolver and how to use them to share data between different android apps to make app data safety.
  2. Android Contacts Database Structure
    Introduce all android contacts tables and table structures with example.
  3. Android Contacts Fields, Data Table Columns And Data Mimetype Explain
    Explain which data column is used to save what android contact field info by contact data mimetype.
  4. Android Add Contact Programmatically Example
    With examples about how to use ContentResolver to read exist android contact list and add new contact.
  5. How To Add Contact In Android Programmatically
    This article show you examples about how to add each android contact field info into contact data table.
  6. How To Get Contact List In Android Programmatically
    Tell you how to read android contacts programmatically and how to avoid database cursor index out of bounds exception.
  7. How To Update Delete Android Contacts Programmatically
    Examples about how to update, delete android contacts use content provider programmatically.
  8. Android Custom Content Provider Introduction
    Tell you how to implement a custom content provider to share data to other apps to access.
  9. How To Create Android Custom Content Provider Example
    This article show you how to implement a custom android content provider with examples.
  10. How To Invoke Custom Content Provider In Other Apps Examples
    This article tell you how to invoke above custom android content provider with examples.
  11. How To Open Camera In Android Programmatically Using Intent
    Example about how to invoke android camera and show camera taken pictures in image view.
  12. How To Use Android FileProvider To Share Files Between Apps
    Example about share files between dfferent android apps through FileProvider class.
  13. Android Pick Multiple Image From Gallery Example
    This example tell you how to pick multiple images in android app programmatically.
  14. How To Get Real File Path From Android Uri
    Tell you how to retrieve android file chooser returned document uri’s real local file path.

Android Fragment

  1. Android Multiple Fragments In One Activity Example
    This article introduce android Fragment and how to use it. It also includes examples about how to communicate between Fragment and Activity.
  2. Android Add Fragment To Activity Dynamically Example
    This article show you how to use android Fragment dynamically with examples.
  3. Android Fragment Back Stack Example
    This article contains example about how to use fragment backstack to save and return fragments.
  4. Android Fragment Save / Retrieve Instance State Example
    This article has an example about how to save or retrieve instance state data in Fragment.
  5. Android Fragment Lifecycle
    This article introduce android Fragment lifecycle and related callback methods with examples.
  6. Android Fragment Menu Example
    This article introduce how to add menu items for android Fragment and how to handle and distinguish menu item click event between fragment menu item and activity menu item.
  7. Simple Android News App Compatible With Phones and Tablets
    This example show you how to use RecyclerView, Fragment, Qualifier, PercentRelativeLayout to implement a simple android news reader app.

Android Media

  1. Android Play Local / Web Audio With ProgressBar Example
    Show how to play audio file and show it’s progress in android. The audio file can be local file or a web file located by url.

Android Permission

  1. How To Grant Write Settings Permission In Android
    This example show you how to resolve android security error do not has WRITE_SETTINGS permission.
  2. Android Marshmallow Runtime Permission Example
    This article introduce android runtime permissions from android 6.0 (Marshmallow). Contains examples about how to use them.

Android Screen

  1. Android Change Screen Brightness Programmatically Example
    This example tell you how to change android device screen brightness programmatically.
  2. Android Change Screen Brightness Use Seekbar Example
    This example shows how to use android seekbar to adjust screen brightness.

Android Service

  1. How To Create, Start, Stop Android Background Service
    Tell you what is and how to create and start, stop android background service component.

Android Storage

  1. Android Device Monitor Cannot Open Data Folder Resolve Method
    This article tell you how to use android device monitor and how to reolve data folder can not open in android device monitor.
  2. Android Read Write Internal Storage File Example
    This article tell you how to read write android internal file for general files and cache files.
  3. Android Read Write External Storage File Example
    Show you how to read write android external storage files with examples.
  4. Android Shared Preferences Example
    Introduce what is android SharedPreferences, and how to use it to save and retrieve data.
  5. Android Sharedpreferences Save/Load Java Object Example
    This example tell you how to save / retrieve java objects use Sharedpreferences.
  6. Android SQLite Database Introduction
    This article introduce where android sqlite db located, how to create it and how to manipilate it’s table and data.
  7. Android SQLite CRUD Operations Examples
    This article show you how to use SQLiteOpenHelper and SQLiteDatabase class to implement create, read, update and delete operations in android SQLite.
  8. How To Write Reusable Code For Android SQLite Database
    This example show you how to write reusable java class to operate different android SQLite database and tables. Includes database create, upgrade, insert, update, delete and query table data.
  9. How To Show Data From SQLite Database In Android ListView
    This example tell you how to use android ListView to load, add, edit, delete and refresh data from SQLite database.

Android Thread

  1. Android Update UI From Child Thread Example
    Tell you how to use Handler and Message object to update android UI in child thread.

Android UI Design

  1. Android Custom View And OnTouchListener Example – Move View On Touch Move
    This example will show you how to create android custom view component and how to use OnTouchListener to create a color ball follow user finger’s move.
  2. Android Radio Button Example
    This example will show you how to use RadioGroup and RadioButton to implement radio button UI component.
  3. Android CheckBox Example
    android.widget.CheckBox class is used to implement CheckBox UI component. This artcile will show you how to use it and how to register event listener on it to process checked change event.
  4. Android AutoCompleteTextView Example
    android.widget.AutoCompleteTextView class is used to create auto complete user input component. This article will show you an example about how to use it.
  5. Android Multi AutoComplete TextView Example
    This example show you how to use MutiAutoCompleteTextView class to implement multiple auto complete input text box. And how to modify it’s attributes both in xml and java code.
  6. Android SpannableString Example
    This example show you how to use SpannableString to implement some colorful and diverse String effect in TextView.
  7. Android ReplacementSpan Example
    This example will show you how to customize span content in spannable string use a sub class of ReplacementSpan class.
  8. Android ToggleButton Example
    This example show you two examples about how to use ToggleButton widget in android app.
  9. Android Spinner Example
    This article contains examples about how to use android Spinner properties and how to customize Spinner adapters. 
  10. Android Splash Screen Example
    This article contains two examples about how to implement splash screen for both fix show time and uncertain show time.
  11. Android Progress Bar Example
    This article will tell you android progress bar properties and sytles. It will also show you example about how to customize progress bar for your needs.
  12. Android SeekBar Example
    This article will show you how to use and customize seek bar in android.
  13. Android Custom RatingBar Example
    This article include examples about how to use and how to customize rating bar.
  14. Android Shape, Selector Examples
    This example show you how to create Shape and Selector drawable object in android. And how to use them as button background.
  15. Android Layer-List Example
    This article include some layer-list examples that help you to understand how to use it. 
  16. Android Button Selector Example
    This example show you how to use android selector drawable as a button background. The button color will change in different button state.
  17. Android Tab, Shadow Button Example
    This article show you how to use android selector, layer-list, shape to implement tab and shadow button effect.
  18. Android ListView Example
    This example show you how to use ArrayAdapter, SimpleAdapter and BaseAdapter to render customized ListView items.
  19. Android Custom ListView With CheckBox Example
    Show you how to add checkbox for each listview item. How to implement select all, disselect all, reverse select and delete selected listview items.
  20. Android ExpandableListView Example
    This example show you how to create and use an ExpandableListView in android. 
  21. How To Improve Android ListView Performance
    This article tell you how ListView behaves and how to improve it’s performance with three examples.
  22. Android GridView And ImageSwitcher Example
    This example show you how to use GirdView and ImageSwitcher to create an image browser with fadein and fadeout image animation.
  23. Android RecyclerView Example
    This article show you how to use RecyclerView to implement ListView, GridView and StaggeredGridView. 
  24. Android Chat App Example Using RecyclerView
    This example shows how to use RecyclerView to implement a chat app in android.
  25. Android ListActivity Example
    This article contains examples about how to use ListActivity to create a single ListView activity.
  26. Android TabHost Example
    This article show exampls about how to use android.widget.TabHost to craete a Tab android application.
  27. Android Enable / Disable Button By EditText Text Length
    Show you how to change button state and text by EditText text length in code.

Android Dialog

  1. Android Alert Dialog Example
    This article contains examples about how to use android.app.AlertDialog to create various style alert dialogs in android.
  2. Android Custom Layout AlertDialog Example
    This article show you how to use SimpleAdapter to custom list item in alert dialog and how to use custom view in alert dialog also.
  3. Android Popup Window Animation Example
    This article tell you how to create and use PopupWindow in android. It also explains the difference between PopupWindow and AlertDialog.
  4. Android Progress Dialog Example
    This example show you how to use android.app.ProgressDialog to build progress popup window.
  5. Android Snackbar Example
    This example show you how to use Snackbar to prompt and interact with income messages.
  6. Android Custom Notification Example
    This article includes 5 examples about how to create different type of android notifications.
  7. Android Notification Advanced Usage
    This article tell you some advanced usage of android notification such as play sound, vibrate, LED light, show long text, show big picture and set notification priority etc.

Android Image

  1. How To Add Images In Android Studio Drawable Folder
    When develop android application, you always need to add images in it. This article will show you how to add images in your android application, there is also an example which will show you how to load and use the added images.
  2. Android ImageView Examples
    This example will introduce you android ImageView properties and usage. There are two ImageView object and 11 buttons, each button shows one image effect.
  3. Android ImageView Matrix Rotate, Scale, Skew, Translate Example
    This example will introduce android.graphics.Matrix class and how to use it’s method to implement image rotate, scale, skew and translate process.
  4. Android GridView And ImageSwitcher Example
    This example show you how to use GirdView and ImageSwitcher to create an image browser with fadein and fadeout image animation.
  5. Android Custom Gallery Example
    This example will use a Gallery and an ImageSwitcher widget to create an image gallery application.
  6. Android Nine Patch Image Example
    This example tell you what is android nine patch image and how to create and use it in android application.

Android Menu

  1. Android Actionbar Example
    This example contains two android activity, they all have action bars and menus. They use action bar menu to interact with each other.
  2. Android ActionBar SearchView Autocomplete Example
    This example show you how to use SearchView to implement search box function in action bar. It also demonstrate how to use ShareActionProvider to popup share window when click an menu item.
  3. Android ActionBar Spinner (Dropdown List) Example
    This example tell you how to add a Spinner style (Dropdown) menu list in actionbar.
  4. Android ActionBar Tab Navigation Example
    This article contains example about how to make android actionbar tab navigation style.
  5. Android Custom ActionBar Style Example
    This example show you how to use style to custom actionbar background.

Android Date Time

  1. Android AnalogClock, DigitalClock, TextClock Example
    This example will show you how to use AnalogClock, DigitalClock and TextClock in android. It also tell you the advantage and disadvantage of them.
  2. Android Chronometer Example
    This example will show you how to use adroid Chronometer to create a time counter. How to use it to create a count down timer.
  3. Android CountDownTimer Example
    This example show you how to use android CountDownTimer to implement send verification code button. It also introduce CountDownTimer class key methods.
  4. Android DatePicker TimePicker Example
    This example will show you how to use android DatePicker and TimePicker to show and let user select custom date and time in their timezone.
  5. Android DatePickerDialog TimePickerDialog Spinner Example
    This example will tell you how to use DatePickerDialog and TimePickerDialog in both calendar, clock and spinner mode.

Android Layout

  1. Android LinearLayout Example
    This article introduce android LinearLayout and it’s properties such as orientation, layout gravity and layout weight with examples.
  2. Android LinearLayout OnTouchListener OnClickListener Example
    This example show you how to add OnTouchListener OnClickListener to LinearLayout.
  3. Android RelativeLayout Example
    This article introduce android RelativeLayout properties and usage examples.
  4. Android Frame Layout Multiple Views Example
    This example show you how to organize multiple View components position in a FrameLayout component. It include an example app which implements neon effect.
  5. Android PercentFrameLayout PercentRelativeLayout Example
    This article show you how to use PercentFrameLayout and PercentRelativeLayout to set components width, height or margin in percentage.
  6. Android Custom Widget Example
    This examples show you how to create a custom android widget by extends LinearLayout.
  7. How To Support Multiple Screen Size In Android
    This article show you how to use android qualifiers to show different layout for different screen size devices. It also tell you how to customize minimum width or height qualifiers.
  8. Android Flexbox Layout Example
    This example show you how to use open source FlexboxLayout.

Android Messages

  1. Android AsyncTask Example
    This article will introduce android.os.AsyncTask class methods and usage. Also with examples about how to implement asynchronous tasks use it.
  2. Android Handler Example
    This article tell you how the messages are managed by Looper and Handler in android system. It also show you an example about how to correctly send messages from child thread to main thread use Handler also.
  3. Android Thread Message Looper Handler Example
    This article will introduce android message queue, message looper and message handler. It also show example about how to add looper for child thread and how to communicate between different thread use messages.

Advanced

  1. How To Resolve Package R Dose Not Exist Error In Android Studio
  2. Button Listener Key Listener And Browse Url Example
  3. Android Activity Example – Switch Between Screens
(Visited 350 times, 1 visits today)