100+ Android Programming Examples

Java Android Tutorial

Android is a Linux-based open-source operating system for mobile devices such as smartphones and tablets. This section contains a list of topics for Android programming examples, ranging from the most basic to the most advanced Android programs. Every example program includes the description of the program, Android code, the explanation as well as the output of the program.

Here is the listing of Android Tutorial Topics/Programs:

How to Create Simple Android Application using Java?
Android Program to Demonstrate Usage of String.xml File
Android Activity Lifecycle with Example
Android Program to Change the Background of an Activity
How to Create Simple Calculator Android App using Android Studio?
Android Program to Change the Image on the Screen
Android Program to Create Multiple Activities within an Application
Android Button OnClickListener Example
Android Program to Demonstrate the Sound Button Application
Android Program to Show Usage of Scroll View
Android RadioGroup Example
How to Create a Alert Dialog Box in Android?
How to Set the Wallpaper of Your Device using Bitmap Class in Android?
Android Program to Demonstrate the Menu Application
How to Display Toast Message in Android?
How to Create an Activity using Fragment in Android?
Android Listview in Java with Example
Android Program to Demonstrate an Advanced Xml Layout
Android Program to Draw on a Canvas
Android Program to Show Surface View via Thread
How to Make a Countdown Timer in Android?
Android Tip Calculator Source Code
Android Program to Animate a Bitmap
Android Program to Demonstrate Layouts in an Activity and Nesting of Layouts
Android Program to Demonstrate Touch Listener
Motion Event in Android with Code Example
Android Program to Draw a Spritesheet on a Canvas
Advanced Animation Activity in Android with Example
Android Program to Demonstrate a Video View
Android View Example
Android Program to Demonstrate Simple Animation Activity
Simple Todo List Application in Android with Source Code
Android Program to Demonstrate an Adapter
Advanced Adapter in Android with Example
Android Program to Create and use a Compound Control
Android Explicit Intent with Example
Android Implicit Intent with Example
Android Program to Demonstrate Linkify Class in Android
Android Program to Demonstrate a Intent Filter
Android Program to Demonstrate a Transform Filter
Android Broadcast Receiver Example
Android Program to Demonstrate BroadCast Receiver to Intercept Custom Intent
Android Program to Demonstrate Pending Intent
Android Program to Demonstrate Ordered BroadCast
Intent Filter Example in Android
How to use Local BroadCast Manager in Android
Android Program to Monitoring Device State Changes using Broadcast Intents
How to use Instance Save State in Android
Android Program to Open an Internet Data Stream
Android XML Parsing using Xml Pull Parser
Android XML Parsing using DOM Parser
Android Program to Demonstrate Download Manager
Android Program to Demonstrate Connection to an Internet Resource
Android Program to Demonstrate Google Maps
Android Program to Show Zoom IN and Zoom Out of an Image using Touch Events
How to Create and Save Shared Preferences in Android?
How to use Preference Screen in Android using Java?
Android Program to Demonstrate using Subscreen in a Preference Screen
Android Program to Demonstrate Intent in Preference Screen
Android Program to Demonstrate PreferenceFragment
Android Program to Demonstrate Preference Headers
How to Create Preference Activity in Android?
Read File from SD Card in Android Application
How to Read and Write from a File in Android?
Android SQLite Database with Example
Android Program to Read and Write Data from SQLite Database
Android Content Provider Example
Write a Program to Create Grade Report Using Content Providers in Android
How to Create a Search Activity for an App in Android?
Android Program to Demonstrate Theme Activity
How to Create a Search Interface in Android?
How to Create a Search Interface with Suggestion Provider in Android?
Android Program to Demonstrate Voice Search in a Search Provider
Android Program to Demonstrate a Full Screen Activity
Android Program to Change an Activity Icon
Android Program to Set an Activity in Portrait Mode
Android Program to Set an Activity in Landscape Mode
Media Content Provider in Android with Example
Android Program to Access All Contacts using Content Provider
Android Program to Find Contact Details for a Contact Name
Android Program to Perform a Caller-ID Lookup
Android Program to Pick Contacts using Intent
How to Add New Contact using Intent in Android?
Android Program to Demonstrate Calendar Content Provider
Insert an Event to Calendar using Android Intent
Android Program to Edit a Calendar Event using Intent
Android Program to Display a Calendar Event using an Intent
Android Program to Delete a Calendar Event
Start Service in Android with Example
Android Program to Start a Service to Vibrate Phone
Android Start and Stop Service from Activity with Example
How to Stop Service in Android Programmatically?
Android Program to Demonstrate Self Terminating Services
Android Program to Start a Service in a Different Process
Android Program to Create a New Thread for Service Tasks
How to Start Service using Alarm Manager in Android?
How to Cancel Alarm in Android Programmatically?
Android Program to Start a Service After Every Hour
IntentServices with Example in Android
How to Download File using Service in Android
Android Program to Demonstrate Binding a Service to an Activity
Android Program to Move a Service to Background
Android Program to Demonstrate AsynChronous Tasks
Loader Example in Android
ActionBar in Android with Example
Hide or Remove Action Bar on Specific Activity in Android
Android Program to Hide Title Label of Action Bar
Android Program to Add Actions in Action Bar
Android Program to Respond to Added Actions in Action Bar
Android Program to Change the Displayed Text alongside the Application Icon at Runtime
How to Change Background Color of Action Bar in Android?
How to Dim the Software Navigation Button in Android Application?
Android Program to Add Action to Home Icon
Android Program to Add Action to Home Icon using set parentActivityName
Android Program to Enable the Split Action Bar
How to Add a Custom View to the ActionBar in Android
Android Program to Demonstrate Action View
ShareActionProvider in Android with Source Code
Navigation Drawer in Android with Source Code
Android Program to Demonstrate Navigation Using Fragments
Android Program to Demonstrate Adding Actions to Navigation Bar
How to Create Navigation Drawer with Different Fragments in Android
How to Create Tab Navigation in Android?
How to Create Drop Down List in Android
Contextual Action Mode Example in Android
Android Program to Show SMS in Your Phone
Android Program to Display SMS from the Phone Numbers
How to Get Current GPS Location Programmatically on Android?
Android Program to Calculate Distance between Two Latitude and Longitude Points
Android Program that Accepts the User Location and Runs in the Background and Notifies the User when they are Within 1 km of that Location
Android Broadcast Receiver Example
Android Program to Consume GPS BroadCast using BroadCast Receiver
How to Specify a Style and Apply to a View in Android?
How to Create a Text View with Rounded Corner in Android?
How to Create Rounded Corners for a Button in Android?
How to Send Data from Service to Activity in Android?
How to Draw Route Between Two Locations in Google Map on Android?
Grid View Layout in Android with Source Code
How to Create Custom Grid View Layout in Android
Android Program to Customize GridView
Geo Coding in Android with Example
Android Program to Get More Geo Location of a Place
How to Create a Menu in Android?
How to Create Option Menu in Android?
How to Create a Menu Group in Android?
Android Checkable Menu Item Program
Android Program to Add the Menu Items Based on Intent
How to Define Menu Hierarchy in XML in Android
How to Create Shortcut to Items in a Menu in Android?
Android Date Picker Dialog Example
Android Character Picker Dialog Example
Android Time Picker Dialog Example
How to Show Progress Dialog in Android?
How to Show Progress Dialog with Spinning Wheel in Android?
Android Program to Show Parsing a Json Object
Android Custom Toast Example
Android Program to Display Toast at Center of Screen
Android Program to Demonstrate ShapeDrawable
Android Program to Demonstrate Gradient Drawable
Android Program to Demonstrate Radial Gradient
Android Program to Demonstrate SweepGradient
How to Convert Text to Speech in Android?
How to Play Sound using SoundPool in Android?
Android Program to Record Media using Media Recorder
Android Program to Send and Receive Data from Server

advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.