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

Dynamically Create View Elements - Android Example Dynamically Create View Elements - Android Example

Sep 30 2013 632143 by admin Download Source Code

In this example creating some UI elements on screen on run time. Creating textview , buttons dynamically and creating onclick listener for buttons. After click on button show index(id).

 

Read More
get_global_application_context_value_2

Global Variable Or Application Context Variable - Android Example Global Variable Or Application Context Variable - Android Example

Sep 27 2013 632269 by admin Download Source Code

In this example defining variable in application context and you can use this variable as a Global variable. You can set value in this variable and get value on any activity / broadcast reci\\eiver / service in application context(environment).
In Further examples you will see good use of this way to follow SINGALTON pattern and MVC pattern in android.

Read More
Showing_splash_screen_1

Splash screen - Android Example Splash screen - Android Example

Sep 26 2013 631943 by admin Download Source Code

Splash screen is an activity that will show for set time when your app is starting and after set time period redirect to application main scre

 

Example :

Lets splash screen show set time is 15 sec then in mean time when splash screen showing you can do these tasks...

   1. You can download resources(images) from webserver to your phone.
   2. You can make server call and get data from server.
   3. Get data from network and save in database.

   4. Show something about your app/company/brand on Splash screen.

 

 

Read More
Show_clicked_listview_row_url_3

Download Images From Web And Lazy Load In ListView - Android Example Download Images From Web And Lazy Load In ListView - Android Example

Sep 15 2013 632273 by admin Download Source Code

In this example downloading images from web to a listview. Using lazy loading to download images in a listview. Using custom adapter to create lisview rows and using ImageLoader class to lazy load images from web and show in listview row.Click on listview showing image url in alert.

 

Steps :

    MainActivity.java : Initialize static image url in string array and create listview.
    LazyImageLoadAdapter.java : Used to create each list row. Inflate tabitem.xml file for each row and call ImageLoader.java to download image from url and resize downloaded image cache on sdcard.
    ImageLoader.java : Used to download image from url and resize downloaded image and make file cache on sdcard. Lazy load images for listview rows.
    FileCache.java : Used to create folder at sdcard and create map to store downloaded image information.
    MemoryCache.java : Used to set cache folder size limit ( How much mb/kb downloaded image cache folder will store ) and also used to clear cache files from sdcard.
    Utils.java : Used to Create Cache image for images downloaded from web.

 

Read More
on_make_call_screen_6

Check Current Running Activity | Task | Application - Android Example Check Current Running Activity | Task | Application - Android Example

Sep 06 2013 632015 by admin Download Source Code

In this example detecting current running activity from top of the activity stack. In this way we can find out current running application and task.

 

Use :

   1. Suppose you have a task like , when user opens message/phone call/any application screen then your app performs an action like start a music or vibration etc....

 

Read More
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
Accelerometer_shake_motion_example_2

Accelerometer Basic Example - Detect Phone Shake Motion Accelerometer Basic Example - Detect Phone Shake Motion

Aug 20 2013 631955 by admin Download Source Code

In this example detecting Accelerometer Motion, when Accelerometer force value cross thersold showing an alert for motion detected.

 

Use :

   1. You can use this example in games based on Accelerometer Motion (Phone Tilt).
   2. You can use this example for battary consumption when using GPS Calls. Combine Screen Wake Sleep Example with this example to consume less battary when calling GPS calls.Later We will give combined example to consume less battery.

 

NOTE :

 Check this example in real device.

 

Read More
noise_sound_frequency_thersold_crossed_4

Detect Noise Or Blow Sound - Set Sound Frequency Thersold Detect Noise Or Blow Sound - Set Sound Frequency Thersold

Aug 19 2013 631992 by admin Download Source Code

In this example detecting noice and setting a noise thersold , when this noise/sound frequency cross thersold ,example will show an alert.

Use :

   When sound frequency threshold crossed you can send help SMS, Make new call etc..

 

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
2d_animation_start_2

Frame By Frame Animation | 2D Animation - Android Example Frame By Frame Animation | 2D Animation - Android Example

Jul 10 2013 631949 by admin Download Source Code

In this example showing frame by frame animation (2D Animation).
Draw 18 images after some time frame by frame .

 

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

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