Monthly Archives: August 2011

Destroying Box2D Physics Bodies in Corona SDK

By | August 28, 2011

Hi, For destroying physics bodies in Corona SDK, use any of the following methods. OR Note : While Box2D objects will be safely retained until the end of the current world step, their Lua references will be deleted immediately. Therefore, be careful not to accidentally delete the same Lua object more than once. This situation could occur when… Read More »

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 close all these… 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 all checkboxes and… 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. How to upload… 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 from the This… 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 or change the… 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 and attach it… Read More »