Android Examples
Login / Register
Android Examples
  • Home
  • Android
  • NEWS
  • Java
  • Faq
  • Algorithms
  1. Home
  2. ANDROID
  3. Android Basics
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
Get_default_email_2

Get Registered Email Accounts - Android Example Get Registered Email Accounts - Android Example

Sep 05 2013 631914 by admin Download Source Code

In this example getting registered email Accounts in android phone.

Getting primary(google) mail account and all registered acconts. Showing accounts on screen.

 

NOTE :

This android example will work in real device.

 

Read More
Custom_ExpandableListView_child_6

Custom Expandable ListView Tutorial - Android Example Custom Expandable ListView Tutorial - Android Example

Jul 16 2013 632167 by admin Download Source Code

In 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 .

 

Steps :

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.

 

Read More
AutoComplete_write_text_2

Show Phone Contacts In AutoComplete Suggestions - Android Example Show Phone Contacts In AutoComplete Suggestions - Android Example

Jul 12 2013 631931 by admin Download Source Code

In 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.

 

Read More
Select_autocomplete_data_3

Show AutoComplete Suggestions - Android Example Show AutoComplete Suggestions - Android Example

Jul 11 2013 631921 by admin Download Source Code

In 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.

 

Read More
TabLayout_tabbar3_data_3

Tab Layout | TabBar - Android Example Tab Layout | TabBar - Android Example

Jul 08 2013 632047 by admin Download Source Code

In 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.

Read More
Seeing_comming_notification_3

Create Notification Alert - Android Example Create Notification Alert - Android Example

Jul 06 2013 631939 by admin Download Source Code

In 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

 

Read More
restful_webservice_server_response_json_5

Restful Webservice Call And Get And Parse JSON Data- Android Example Restful Webservice Call And Get And Parse JSON Data- Android Example

Jul 05 2013 632156 by admin Download Source Code

In This example calling restful webservice to get json data and parse that json data.

 

Steps :

   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).

 

Read More
dotnet_webservice_call_response_3

Dot Net Webservice Call - Android Example Dot Net Webservice Call - Android Example

Jul 04 2013 631944 by admin Download Source Code

In 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.

Steps :

   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.

 

Read More
check_internet_connectivity_after_f8_click_1

Check Internet Connectivity Check Internet Connectivity

Jun 25 2013 631954 by admin Download Source Code

In 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.

Read More
FTP_Upload_file_from_sdcard_2

FTP File Upload From Sdcard to server FTP File Upload From Sdcard to server

Jun 22 2013 632041 by admin Download Source Code

First 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 ).

Steps :

   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.

 

Read More
skew_blend_image_on_sdcard_2

Skew Or Bind Image On SDCARD - Android Example Skew Or Bind Image On SDCARD - Android Example

Jun 20 2013 631893 by admin Download Source Code

In This example taking a image from sdcard and skew / bind image with the use of matrix.

Read More
Swipe_screen_down

Swipe screen left right top bottom Swipe screen left right top bottom

Jun 07 2013 632039 by admin Download Source Code

In This example creating a Swipe screen example .Swipe screen left / right / top / bottom , an alert will show.

Read More
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

Categories

  • Android Basics (71)
  • Android Advanced (8)
  • Projects (1)

Tags

ANDROID
  • INSTALLATION
  • BEGINNER
  • SQLite
  • LAYOUTS
  • GUI
  • THREAD
  • BROADCAST RECEIVER
  • LISTVIEW
  • GPS
  • CONTACTS
  • XML / JSON
  • WEBVIEW
  • SHARED PREFERENCES
  • CONTENT PROVIDER
  • SERVICE
  • CAMERA
  • FILE UPLOAD
  • CUSTOM
  • WIFI
  • CALL
  • SMS
  • WEBSERVICE
  • ANIMATION
  • AUTOCOMPLETE
  • ACCELEROMETER
  • NOISE
  • MVC
  • GCM
  • FACEBOOK

Top Downloads

Open File Chooser With Camera Option In Webview File Option Open File Chooser With Camera Option In Webview File Option
Feb 03, 2014 671496
Facebook Integration - Android Example Facebook Integration - Android Example
Jan 13, 2016 670839
Android Session Management Using SharedPreferences - Android Example Android Session Management Using SharedPreferences - Android Example
Jan 19, 2014 670638
Show Loader To Open Url In WebView - Android Example Show Loader To Open Url In WebView - Android Example
Dec 24, 2013 670544
Android SharedPreferences Basics Android SharedPreferences Basics
Dec 28, 2013 670477
Play Video File - Android Example Play Video File - Android Example
Nov 09, 2013 669918
Android Push Notifications using Google Cloud Messaging GCM Android Push Notifications using Google Cloud Messaging GCM
Oct 05, 2013 633194
Upload File To Server - Android Example Upload File To Server - Android Example
Feb 28, 2013 632483
Incomming SMS Broadcast Receiver - Android Example Incomming SMS Broadcast Receiver - Android Example
Feb 04, 2013 632410
How To Make HTTP POST Request To Server - Android Example How To Make HTTP POST Request To Server - Android Example
Feb 06, 2013 632305
Android Examples

Founder of Android Example.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook.

Email: info@androidexample.com

Follow Us

Information

  • About Us
  • Terms & Conditions
  • Privacy Policy
  • Contact Us

My Account

  • My Account
  • My Questions

Sign Up to Our Newsletter

Sign up our newsletter and get exclusive deals you will not find anywhere else straight to your inbox!

Features

  • Java Blogs
  • News
  • Faqs

© 2025 AndroidExample All Rights Reserved.

This website uses cookies to ensure you get the best experience on our website. For more information Learn about cookies