Tag Archives: ANDROID

How to install an APK into your device or emulator through command prompt or shell.

By | December 27, 2011

In this post I will show you how to install an apk on to the emulator or the device through the shell or command prompt. Before experimenting with this post I assume that you have these done 1. Installed the Android SDK. 2. Added the adb path to the environment path. This is how you… Read More »

Parsing an XML from Online in Android

By | December 25, 2011

In the previous example I showed how to parse an xml that is stored in a file in res/xml folder. In this post I will show you how to parse an xml that is stored in a server in an xml file. Here I am using an xml that is stored in here Here is… Read More »

How to show a sliding window from below in Android?

By | December 22, 2011

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 do this in another way. How to show a sliding window from below in Android?… Read More »

Displaying Zoom Controls and Changing the View of Google Maps in Android. or Create ZoomIn or Out by Code

By | December 19, 2011

Hello all……… In the previous post I showed you how to start with Google maps in android. In this post I will show you how to show zooming controls and changing the view of the map. Actually this is really simple. Add these lines to the previous code to add the zooming controls. Now how… Read More »

SlidingDrawer in Android, A simple example.

By | December 1, 2011

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 Sliding drawer SlidingDrawer hides content out of the screen and allows the user to drag… Read More »

Building games for android and iPhone

By | November 27, 2011

Today I will talk about building games for android and iPhone. There are a lot of SDK’s available for building games over the internet and I am here to talk about the CORONA SDK. Corona SDK is a software development kit created by Walter Luh, co-founder of Ansca Mobile. It allows software programmers to build… Read More »

How to use shapes in android? A simple example.

By | October 23, 2011

In android with shapes we can create beautiful layouts. Lets look at an example. Create an xml named “gradient.xml” in your drawable folder and copy this code into it. Now the main layout file main.xml The main java file. Done. You can now run the application.

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 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 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 »

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 read webpage contents as a string in Android?

By | July 17, 2011

This is a simple example to read a webpage content as a string in android. This example can also be used to get the response as a string when you make a call to a webpage. For example a php script. You can have a http script that will call a php script and get… Read More »

How to listen to the softkeyboard done button in android?

By | July 13, 2011

Instead of using a button on the view we can use the softkeyboard done button to trigger an action. The action can include calling another activity or retrieving the data from the EditText etc. The main.xml contains an Edittext For listening to the keyboard event we need onKeyListener

TextSwitching animation in ANDROID or Using TextSwitcher Control in ANDROID

By | July 2, 2011

Hi all….. Today I will show you how to do a simple and beautiful text animation while switching the text in a textView in android The advantage is that you don’t need a seperate xml file for animation in this program, all is done inside the java code. This is the main java file. Here… Read More »

How to Open camera in ANDROID?

By | June 25, 2011

Hello everyone.. In today’s tutorial I will show you how to use camera in ANDROID in your program. In this tutorial we will be having a button which will open the camera and after taking the photo it will show it in an imageView. Note: This program will work only in the real device not… Read More »

How to use SeekBar in ANDROID?

By | June 21, 2011

Here is a simple example to show how to use seek Bar in android. Create a new project and place this code in it. The main.xml file The strings.xml file. Here is another example to show How to get the current progress on your SeekBar in android? Please leave your valuable cmments

Simple View Animation in ANDROID?

By | June 11, 2011

Hi all….. In this post I will show you a simple animation using a textView. It’s really simple. Steps. 1. Create a fresh project and copy this java code into it. 2. Create a folder named “anim” inside the res folder and create a file named “animation.xml” and copy this code into it. 3. copy… Read More »