Home

Android Source code snippets, Tutorial, Tips and Tricks



This page contains Android Tutorial, Source code snippets, Tips and Tricks and small applications.

Showing latest articles on the top...

  1. Android Example to Click Photo or Select Image from Gallery.
    This article defines an Android code which either clicks photo by camera or selects images from gallery of your phone. Here, we will learn through the code how to select image from gallery or how to click and use an image in Android Application?
  2. Android Button Customization Example.
    In this tutorial, we are going to learn about button customization i.e. How to display a normal button in different looks like shapes, colors?
  3. Android ImageButton Example Code.
    In this tutorial, we are going to learn about image button in android i.e. How to display an image on a button? As you click on the image button a toast message is displayed
  4. Android Button Example Code.
    In this tutorial, we are going to learn about button in android i.e. How to display a normal button and to add a click listener, when user clicks on the button, an URL opens a webpage?
  5. Android Services Example.
    In this tutorial, we are going to learn about services in Android, this tutorial contains definition, types of services, methods which will be used in the example and an example of android services.
  6. Fade In Animation Example in Android.
    In this tutorial, we are going to learn how to animate pictures and graphics in android studio. This is an example of ‘fade in’ animation.
  7. Settings Activity in Android Studio.
    In this article, we are going to learn about settings a pre-defined activity and its alternative layouts for both handset and tab size screen.
  8. Map activity in Android Studio.
    In this article, we will learn how to use map activity and in Android Studio and initialize some user permissions for working on it?
  9. What is Navigation Drawer in Android?
    In this article, we are going to learn about navigation drawer activity and try to understand how to use it in Android?
  10. How to work with scrolling activity in Android?
    In this article, we are going to learn about scrolling activity with its activity java and layout xml file in Android.
  11. Android - Option Menu Example.
    In this article, we are going to learn how to create Option Menu in Android? This post contains source code files (XML, Java and Output).
  12. How to use Services in Android?
    In this article, we are going to learn about services and how to enable it in android.
  13. How to send SMS in android using Intent?
    In this article, we are going to learn about the intent to use it for sending SMS on a cell phone number.
  14. Save data using SharedPreferences in Android.
    In this article, we are going to use sharedPreferences in Android to save data with its key.
  15. How to Switch on WIFI service in Android?
    In this article, we are going to learn about WiFi manager and the process to use its services.
  16. How to parse XML file in Android?
    In this article, we are going to learn about the XML parser and how we can parse an xml file in Android.
  17. How to create an emulator in Android Studio?
    In this article, we are going to create an emulator in android studio for testing our app without android device.
  18. Compose mail from your Android Device.
    In this article, we are going to learn about emails and how to compose a mail using Intent.ACTION_SEND through your android device?
  19. Make a call by using Intent.ACTION_CALL in Android.
    In this article, we are going to use Intent.ACTION_CALL for making a call from our Android device on a specific telephone number.
  20. Create Webview inside Android Application.
    In this article, we are going to learn about WebView and how to use it for creating a window to view your website?
  21. Switching between two images in Android.
    In this article, we are going to switch between two images using ImageSwitcher in Android.
  22. How to share something on social media from your Android Device?
    In this article, we are going to implement an example how open share window and share something through Android Device?
  23. Progress Bar in Android Application.
    In this article, we are going to implement a progress bar to show process running in background in Android.
  24. How to generate a notification in an Android device?
    In this article, we are going to generate a push notification in our android device with the help of NotificationManager class.
  25. Implement process circle in Android.
    In this article, we are going to learn about process circle to show user process waiting time and the method to implement it in Android.
  26. Write file using FileOutputStream class in Android.
    In this article, we are going to learn about files, how to write content using FileOutputStream and save them in device internal storage?
  27. How to change image view color using bitmap in Android?
    In this article, we are going to learn about bitmap class and use it to change image view color in Android.
  28. How to get motion touch co-ordinates in Android?
    In this article, we are going to learn about motion touch and then we will try to get co-ordinates between two end points of a line.
  29. Android - Context Menu Example.
    In this Android Example, we are going to learn how to write code to display content menu with its options? Here, you will find all project related file like java, xml, manifest etc.
  30. How to get co-ordinates of touch points on screen in Android?
    In this article, we are going to learn about co-ordinate of android device screen and use MotionEvent to get touch co-ordinates.
  31. How to check and turn on the device Bluetooth in Android?
    In this article, we are going to learn about the Bluetooth and we will check our device’s Bluetooth whether it is on or not, if not we are going to learn how to turn it on?
  32. Generate backup on Google backup services in Android.
    In this article, we are going to generate backup of our application by using Google backup services of Android.
  33. Implement auto complete in Android.
    In this article, we are going to use about auto complete text view and learn about auto complete in Android.
  34. Change the device mode on Silent in Android?
    In this article, we are going to learn the method to use AudioManager and change the current audio mode of device to Silent mode.
  35. How to set your device on Vibrate mode in Android?
    In this article, we are going to learn the method to use AudioManager and change the current audio mode of device to Vibrate mode.
  36. How to set your device on Ring/Normal mode in Android?
    In this article, we are going to learn the method to use AudioManager and change the current audio mode of device.
  37. How to show audio mode of device in Android?
    In this article, we are going to learn the method to use AudioManager and toast the current audio mode of device.
  38. Android Popup Menu Example.
    In this article, we are going to learn about Popup Menu. This displays menu either below or above the anchor text. If you click outside of the popup menu, it is not visible.
  39. Slide image to XScale in Android (animation).
    In this article, we are going to set animation on an image view by sliding the given image to XScale in Android.
  40. Move image on a particular axis in Android (animation).
    In this article, we are going to set animation on an image view by moving it on a particular axis in Android.
  41. Blink image for an infinite count in Android (animation).
    In this article, we are going to set animation on an image view and blink the set image up to infinite count in Android.
  42. Fade image for a particular duration in Android (animation).
    In this article, we are going to set animation on an image view by fade the image for a particular duration in Android.
  43. Rotate the image in both clockwise and anti-clockwise direction in Android (animation).
    In this article, we are going to set animation on an image view by rotating the given image in both clockwise and anti-clockwise direction in Android.
  44. Implementing gestures in Android.
    In this article, we are going to implement gesture on image view to resize the image with finger touch in Android.
  45. How to use Custom made fonts in Android?
    In this article, we are going to learn about custom fonts and then use them as an example with three text views in Android.
  46. How to use ClipboardManager to ClipData in Android?
    In this article, we are going to use a pre-defined class ClipboardManager and learn how to use ClipData for copy and paste data in Android?
  47. BatteryManager and its properties in Android?
    In this article, we are going to learn about BatteryManager and how we can use it to know battery status and other battery properties?
  48. Showing list of all paired devices in Android.
    In this article, we are going to show the list of all the paired devices while your Bluetooth is turn on in Android.
  49. How to know Charging mode in Android?
    In this article, we are going to learn about charging modes in Android and then find the current charging mode of device.
  50. How to zoom the image in Android (animation).
    In this article, we are going to set animation on an image view by zooming the given image.
  51. Toast the result of dialog in Android.
    In this article, we are going to set two different options in a dialog box and toast the closable option as result.
  52. Android code to Read and Save Data from/to External Storage.
    Like internal storage, we can also read and save data from/to the external memory such as SD card of the actual device. In this article, we are going to learn the use of FileInputStream class and FileOutputStream class.
  53. Android code to Read and Save Data to/from Internal Storage.
    In this article, we are going to learn the use of FileInputStream class and FileOutputStream class. This is used to store and read files and data to/from internal storage of your device.
  54. Android ACTION_SEND event Example with Source Codes.
    In this article, we are going to learn use of ACTION_SEND event. This is to send data from home activity to another and also from current activity to the outside of the app.
  55. Android - Set Listener on item of a list setOnClickListener.
    Set Listener on item of a list setOnClickListener - In this article, we are going to learn about Item of an Item of a List in android and how to use them?
  56. Android - List view - setOnItemClickListener.
    Android - List view - setOnItemClickListener - In this series, we are going to learn about the click Listeners in android and how to use them?
  57. Android - Independent view (1) setOnClickListener.
    Android - Independent view (1) setOnClickListener - In this series, we are going to learn about the click Listeners in Android and how to use them?
  58. Android - StartActivityForResult Method.
    In this article, we are going to learn about startActivityForResult method in Android with the code file. How it functions?
  59. Pre-defined Login activity in Android Studio.
    In this article, we are going to learn how to create and use a pre-defined login activity in Android Studio?
  60. An example of Simple Toast in Android.
    In this article, we will learn about simple toast in Android. How to set toast on click and to set its length to display?
  61. Android Activity Lifecycle.
    In this article, we will learn about Android Activity Life Cycle. How the activity behaves in different states?
  62. How to use bundle class for passing data of any type in Android?
    In this article we are going learn how to use bundle class to pass data between activities and initializes key for the values we pass?
  63. How to use full screen activity in android studio?
    In this article we are going to learn about full screen activity and the process to create and use it.
  64. Android Code for Explicit Intent.
    In this article, we will learn how to use explicit intent and to move from one activity to another and vice-versa?
  65. Android code for Implicit Intent.
    In this article, we will learn how to use implicit intent? There two types of code (XML and Java) implicit intent coding is done in Java code, XML code is used for the design of layout.
  66. Installation of Android Virtual Device.
    In this article, we are going to learn how to install Android Virtual Device on your system? This article contains step by step process with the screenshots.
  67. Installation of Android Studio.
    This tutoial contains step by step process with pictures to downloand and install of Android Studio, learn how to install it on your system?
  68. Sending data on server through an Android Application.
    How to send data on server through an Android application? Here, we will make a Login module to practically learn the CallHtttpRequest.
  69. Android Application Connectivity with the Server.
    In this article, we will learn how to connect an Android application with the server of any kind?
  70. Android Tabbed Activity - 2.
    In this article, we will learn about how to make use of Fragment under Android Tabbed Activity?
  71. Android Tabbed Activity - 1.
    In this article, we are going to learn how to make use of tabbed activity in Android?
  72. Android Fill a List with an Array.
    Here, we will go to learn to make a list and fill the list with data in the array.
  73. Create a new Activity in Android Studio.
    In this article you will learn how to create a new activity in android studio with following steps.
  74. How to create a project in Android Studio?
    In this article, we will learn how to make a new project in Android Studio?
  75. ImageView in Android.
    In this article, we will learn how to use Image View with user defined images?
  76. Android Relative Layout.
    In this article, we will learn about the Relative-layout and its uses by working with two edit texts respectively.
  77. Create a Layout with Linear orientation.
    In this article, we will learn how to create a new layout with Linear orientation?
  78. Grid Layout in Android.
    In this article, we will learn about the Grid - layout, its uses and set four image views in grid view.
  79. Layouts - Linear Layout Formation in Android.
    In this article, we will learn about the Linear-layout in Android, and its uses, create a set of buttons and form in linear layout.
  80. How to work on Intent (part-2) in Android?
    In this article, we are going to learn how create more than one activity and work further on intent in Android?
  81. How to work on Intent (part-1) in Android?
    In this article, we are going to learn how to create more than one activity and work with intent in Android?
  82. How to create a ListView in Android?
    In this article, we are going to learn how to initiate a list view for layout in Android?
  83. Working with Image Button in Android.
    In this article, we are going to learn how to create an image button and work with it in Android?
  84. How to create a GridView in Android?
    In this article, we are going to learn how to initiate a grid view for layout in Android?
  85. A general Form design with specific fields in Android.
    In this article, we are going to learn how to create a general form with specific fields in Android?
  86. Working with Dialog (part-2) in Android.
    In this article, we are going to learn how to initialize a dialog and some of its pre-defined methods in Android?
  87. Working with Dialog (part-1) in Android.
    In this article, we are going to learn how to initialize a dialog and work with it in android?
  88. How to define string for whole project in Android?
    In this article, we are going to learn how to define a String for whole project in android?
  89. Initiate an analog Clock in Android.
    In this article, we are going to learn how to work with pre-defined analog clock in Android?
  90. Android - Signup and Sign in (login) and Sign out (logout) with codes.
    In this Android application, we are going to learn how to create an application to manage signup (registering a user), sign in (login) and logout (sign out)? This is a complete tutorial with source codes.
  91. Android - setOnCheckedChangeListener for Radio Buttons.
    In this article, we are going to learn how to work with setOnCheckedChangeListener method for radio buttons in android?
  92. Android - setOnCheckedChangeListener for checkbox.
    In this article, we are going to learn how to work with setOnCheckedChangeListener method for checkboxes in Android?
  93. Android - How to get value of EditText?
    In this article, we are going to learn how to fetch/get the value of EditText in Android?
  94. Android - setOnClickListener Method, how does it work?
    In this article, we are going to learn how to work with setOnClickListener method in Android?
  95. Android code to make call from your own application.
    Android code to make call from your own application: This article contains all source codes files related to this android project (code for calling from android mobile).
  96. Building your first Android Application.
    In this article, we are going to learn how to create first project? This article contains step by step process with the screenshots.




Quick links:
C FAQ(s) C Advance programs C/C++ Tips & Tricks Puzzles JavaScript CSS Python Linux Commands PHP Android Articles More...

Was this page helpful? Please share with your friends...

Are you a blogger? Join our Blogging forum.




Comments and Discussions





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com (2015-2018), Some rights reserved.