• How to call a click on a button Programatically?

    The click on a button or View is usually called when the user clicks on it. But how can we call it programatically. Here is a simple example yes “performClick()”, this is how to call click programatically.

     
  • DataBinding in Android using Observable Collections

    As I shown in the previous post where we used BaseObservable and ObservableField to update UI when binding object is changed, this post will show you another simple way to achieve this. Do Check my previous posts for better understanding […]

     
  • How to show error in an EditText using setError() in Android?

    We will go straight to the code. This is the layout containing the EditText and the Button.

     
  • How to make a Button appear like a TextView in Android?

    Hello all….. This is a simple trick where we can make the Button appear like a TextView in Android. This is done by setting the background of Button to null like this. b.setBackgroundDrawable(null); This is the xml that contains the […]

     
  • Custom Alert in android.

    We can create any type of alert in android. Today I will show a simple example showing how to create a custom alert in android. i.e you can provide any layout to your alert dialog. Now we will start. First […]

     
  • Global variables in ANDROID……

    Hi all……. In today’s exampl e I will show you how to deal with global variables in ANDROID. You know global variables are those variables that you can access across any variables. It’s value becomes changed when you change it […]

     
  • How to use Global variables in ANDROID?

    Hi all……. In today’s exampl e I will show you how to deal with global variables in ANDROID. You know global variables are those variables that you can access across any variables. It’s value becomes changed when you change it […]

     
  • How to send email from and ANDROID Application programatically?

    Hello all…….. In today’s post I will show you send mail from an android application progrmatically.. Let’s go to the code fast…… This is the code in the mail java file…. Now the layout file (main.xml) The AndroidManifest.xml Note: However […]

     
  • Email validation in ANDROID.

    This is a simple example showing email validation in ANDROID. This example uses regex for email validation. Create a button and an edittext in your main.xml file and try this code. Check this link to find how you can send […]

     
 

Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.