Category Archives: ANDROID

How will you programatically enable or disable WIFI in android?

By | September 30, 2011

Hello all.. This is a simple code snippet to enable WI-FI in android programatically in android. Note : Make sure to add the permissions in the manifest file. These are the permissions. Please leave your valuable comments on this post.

How to remove a view in your xml layout file using program?

By | September 28, 2011

Hello everyone, this is a simple example showing how to remove a view in android that is created using your xml file. This is the xml file that contains a TextView Here is the java code for removing this view After running this program you will not see the TextView that was in your layout… Read More »

How to create a splash screen in android?

By | September 10, 2011

Hello everyone today i will show you how to create a splash screen in android. This is one of the simplest ways to create a splash screen however there are another ways to create the splash screen. Lets look at the code. We need two layouts one for the splash screen and another for the… Read More »

How to create a MD5 hash of a word in android?

By | September 3, 2011

This is one of the most useful things in android. We can use the MD5 algorithm to create a hash of any string we want. Here is the code for doing that. Check the LogCat for output. Please leave your valuable comments on this post.

How to close All activities in your View Stack in android in one click?

By | August 27, 2011

Hello everyone… Today I will show you how to close all views in android in a single click of a button. Basically if you open a number of activities, each activity is stacked one above the other like a stack if you are not calling finish() on each activity. But there is a way to… Read More »

How to use RadioButtonGroup in Android?

By | August 20, 2011

Hello everyone , In today’s tutorial I will show you how to how to use RadioButton group in Android. Lets go directly to the code. Let’s see the layout for the RadioGroup first. The file is named main.xml This will create a layout file with a radioGroup with 5 radioButtons and a button to clear… Read More »

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

By | August 16, 2011

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 own string parameters with them. Here is another method on working with uploading of images.… Read More »

How to get the current progress on your SeekBar in android?

By | August 11, 2011

I have already shown how to use seekBar in android. This simple snippet helps you to get the current progress in the seekbar. It’s same code from this post, only thing is I added the getProgress method. Check the Logcat for the current progress or the TextView in which I am showing. Take the xml… Read More »

How to align a text in Android Programatically?

By | August 6, 2011

This is a simple demo on aligning a text in Android. You can check out for more details at the developers site. This code explains how to write a String or text on a canvas and how to give it a custom font or inbuilt font programatically, change the color of the text or canvas… Read More »

How to record an audio in android and email it as attachment?

By | August 4, 2011

This example shows how to record an audio in android and save it in your path and send it as an email attachment. This example is taken from the developers website. Note : You should run this on the device otherwise it will not work. This example will open up an email client after recording… Read More »

Android phpmySQL connection redone.

By | July 27, 2011

Hi all.. Most of our visitors had problem with one of our previous post on Android-php connection. So here I am posting another simple example to connect with a php file. Here I am simply putting an echo in the php file which ehoes back the data from the android side. Here are the things… Read More »

How to avoid OutOfMemory Exception in android- Second Method?

By | July 24, 2011

In the previous tutorial I showed you one method to avoid OutOfMemory Exception in android. And In this tutorial I will show you another method. The reduceImageSize function in this code reduces the image to the desired size you want. Create a fresh project and copy this code into it. How to put images inside… Read More »

How to avoid OutOfMemory Exception in android?

By | July 23, 2011

Hello all.. The OutofMemory exception is a common exception in android when you select an image from a gallery or load Big Images in android. There are different methods to solve this problem. Today I will show you one of the method to solve this problem. The method I am going to explain here is… Read More »