Get Registered Email Accounts - Android ExampleIn this example getting registered email Accounts in android phone.
Getting primary(google) mail account and all registered acconts. Showing accounts on screen.
This android example will work in real device.
Custom Expandable ListView Tutorial - Android ExampleIn this example creating a custom Expandable ListView with parent and child rows. parent rows contains texts,images and a checkbox. child rows contains texts,images. Creating custom adapter to create Expandable ListView rows .
1. Create Model classes for parent rows(Parent.java) and for child rows(Child.java). These classes will use to store parent rows and child rows data.
2. Create xml files for parent rows(grouprow.xml) and for child rows(childrow.xml). These classes will use to create GUI for parent rows and child rows.
3. Create dummy data in parent and child model objects and Store objects in an ArrayList.
4. Create custom Adapter MyExpandableListAdapter class and inflate grouprow.xml file for parent rows() and childrow.xml for child rows. Use Models Parent.java and Child.java to create data for rows.
Show Phone Contacts In AutoComplete Suggestions - Android ExampleIn this example reading Phone Contacts and showing these contacts name as Auto suggestions for TextView. After AutoComplete value selection showing selected contact phone number in alert.
AutoCompleteTextView is an editable text view that shows suggestions automatically while the user is entering characters. The list of suggestions is displayed from which the user can choose an item.
Show AutoComplete Suggestions - Android ExampleIn this example taking array of strings and showing these strings as Auto suggestions for TextView. After AutoComplete value selection showing selected value in alert.
AutoCompleteTextView is an editable text view that shows suggestions automatically while the user is entering characters. The list of suggestions is displayed from which the user can choose an item.
Tab Layout | TabBar - Android ExampleIn this example creating a tab layout to show different screen for each tab.
Creating three tabs and setting different images and screens for each tab.
- To Create Tab and Tab change listner Extend TabActivity and implements OnTabChangeListener.
- Create tabhost object to create tabs.
- Create three tabs name FOOD , GAME , SPORT and set background images.
- Create three activities add these tabs.
- Add Tabs to tabhost.
Create Notification Alert - Android ExampleIn This example creating Notification Alerts with the use of NotificationManager.
Some times we have requirement to show alert user from background services or from broadcast reciever then best way to notify user by Notification Alert
Restful Webservice Call And Get And Parse JSON Data- Android ExampleIn This example calling restful webservice to get json data and parse that json data.
1. Call php file (php) from server and create JSON data in php.
2. Consume JSON data by android and show on activity.
3. Parse JSON data and Show parsed data on screen(activity).
Dot Net Webservice Call - Android ExampleIn This example calling dot net webservice to get/send data to server. Using ksoap2-android-assembly-2.4-jar-with-dependencies.jar to make soap call.
Accessing a live web service ConvertWeight from http://www.webserviceX.NET/ which convert weight from one unit to another.
1. Add jar ksoap2-android-assembly-2.4-jar-with-dependencies.jar in your project.
2. Creating class WebserviceCall.java and define webservice namespace and url and make soap call. Accessing a live web service ConvertWeight from http://www.webserviceX.NET/ which convert weight from one unit to another.
3. Call WebserviceCall.java object to call getConvertedWeight method.
4. Showing response in a toast(alert) and on screen.
Check Internet ConnectivityIn this example we will see how to check internet connectivity.
When we have requirement to call file on server or call webservice then first check internet connctivity.
If internet connection is showing connected then we will call file on server or call webservice.
Required ACCESS_NETWORK_STATE permission in mainfest.xml file.
FTP File Upload From Sdcard to serverFirst Time User Please check previous example for normal file upload by server script( php | java | .net | coldfusion )
Upload File To Server - Android Example ( http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php?view=article_discription&aid=83&aaid=106 )
In this example uploading file on server by ftp client ( with the use of ftp4j-1.6.jar ).
1. Using ftp4j-1.6.jar from sauronsoftware repository. Download and Add ftp4j-1.6.jar as library.
2. Must be required a Server Dedicated IP for FTP File upload.
Skew Or Bind Image On SDCARD - Android ExampleIn This example taking a image from sdcard and skew / bind image with the use of matrix.
Swipe screen left right top bottomIn This example creating a Swipe screen example .Swipe screen left / right / top / bottom , an alert will show.
Founder of Android Example.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook.
Email: info@androidexample.com
Sign up our newsletter and get exclusive deals you will not find anywhere else straight to your inbox!
© 2026 AndroidExample All Rights Reserved.
This website uses cookies to ensure you get the best experience on our website. For more information Learn about cookies
