• CRUD Operations in SQLite using SQLiteOpenHelper – Android

    We do SQLite operations in Android by extending the SQLiteOpenHelper Class. I will create an Employee table with three fields id name company. I have a model class same as the database table Employee. Employee.java Lets see How we can […]

     
  • Uploading Image to Server – Android Eclipse Version.

    Hi all, In today’s tutorial I will show you how to send an image to server using POST method in ANDROID. If you are working in Android studio, then checkout the article here. Uploading an image to server is a […]

     
  • How to write interfaces in java or Android?

    This tutorial is about how to use interfaces in java or Android. What is an Interface? An interface is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. An interface is […]

     
  • How to load a spinner with values from SQlite Database in android?

    Here is a simple example showing how to load a database values in a spinner in android. OK we will start. This is the layout for the spinner row. spinner_row.xml This is the layout for the interface. activity_main.xml Now this […]

     
  • Using Tabbars in ANDROID, A Simple Example……….

    This is a simple example showing how to use tabbars in ANDROID. First create a new project and copy this code to it. Now create three another java files by right clicking the src folder and name it FirstTab.java, SecondTab.java, […]

     
  • How to check whether an application is installed in your ANDROID Phone?

    This sample code comes handy when you have to check that an application is already installed in your ANDROID Phone. Call the below function appInstalledOrNot() with the package name of the app installed on the ANDROID Device as a string […]

     
  • How to place layouts one over another in android using addContentView()?

    Hello all… In today’s tutorial I will show you how to add different layouts one over another in android through java code. For this we use the function addContentView() which is a variation on setContentView(View, android.view.ViewGroup.LayoutParams) to add an additional […]

     
  • Changing the style or theme of default alertDialog in Android.

    Hello everyone, Here is a simple example showing how to change the theme of default AlertDialog in android. Check this post before for understanding how to use styles. http://www.coderzheaven.com/2012/04/17/inherit-styles-extend-styles-android/ To start first create a fresh project named AlertTest. In the […]

     
  • Saving TextFile to SDCARD in android?

    Hello android lovers, In today’s tutorial I will show you how to 1. Create a text file and save a textfile in your SDCARD in your preferred path. 2. Read the contents from the same file and show it in […]

     
  • Starting PhoneGap for ANDROID.

    Hello everyone…. In today’s tutorial I will show how to start with a HelloWorld Application in PhoneGap for ANDROID. So what is PhoneGap PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and […]

     
  • How to show a sliding window from below in Android?

    Hello everyone, I have already showed you how to use a SlidingViewer to create a slidingWindow. Today I will show another way to create such a window with the help of animation. Please check one of my previous posts to […]

     
  • SlidingDrawer in Android, A simple example.

    Sliding-Drawer in a nice and useful widget in android. Please check one of my previous posts to do this in another way. How to show a sliding window from below in Android? Check this new One using Navigation Drawer About […]

     
  • How to Upload Multiple files in one request along with other string parameters in android?

    Hello everyone, I have shown two methods to upload files in android. In today’s tutorial I will show another simple method to upload files. With this method you can upload multiple files in one request + you can send your […]

     
  • 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 […]

     
  • TextView with link in ANDROID…….

    Hi all……. All of you may be familiar with TextViews in ANDROID. But how many of you know that we have have html as text in a textView. This post is a simple example to show this. Create a fresh […]

     
  • ANDROID Tabbars Example……..

    This is a simple example showing how to use tabbars in ANDROID. First create a new project and copy this code to it. Now create three another java files by right clicking the src folder and name it FirstTab.java, SecondTab.java, […]

     
  • Using Tabbars in ANDROID, A Simple illustration……….

    This is a simple example showing how to use tabbars in ANDROID. First create a new project and copy this code to it. Now create three another java files by right clicking the src folder and name it FirstTab.java, SecondTab.java, […]

     
  • Using Tabbars in ANDROID, A Simple Example……….

    This is a simple example showing how to use tabbars in ANDROID. First create a new project and copy this code to it. Now create three another java files by right clicking the src folder and name it FirstTab.java, SecondTab.java, […]

     
  • How to split a String in ANDROID?

    Hi all….. Splitting a string in android is really easy.checkout the following snippet. Check the Logcat for output. Note: Make sure to put the escape character before the delimiter for splitting,otherwise the output may be each character.

     
  • Listening incoming sms message in Android

    When a new sms message is received by the device, a Broadcast Receiver is registered. For this IntentFilter filter = new IntentFilter(SMS_RECEIVED); registerReceiver(receiver_SMS, filter); should be included . Also sms are sent in PDU’s(Protocol Description Units) format, which act as […]

     
  • Customizing your button or TextView or another view in ANDROID.

    Beautifying our applications is one of the main features of your application’s success. In ANDROID there are many possible ways to do this. For eg. We need to have different colors for our buttons, However we can give backgrounds for […]

     
  • How to create and delete a directory in SdCard in ANDROID?

    Hi all…… This is a simple example to create and delete a directory in ANDROID. Here the directly is created in the SDCARD. So first create an SDCARD and start the emulator with the SDCARD. Let’s look at the program. […]

     
  • ANDROID – Upload an image to Server in Android Studio

    Hi all, In today’s tutorial I will show you how to send an image to server using POST method in ANDROID. Uploading an image to server is a basic requirement in many of our application. Sending data to server which […]

     
 

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.