Getting started with Corona

By | November 27, 2011

In the previous post I told you about corona SDK and Today I will show you how to get started with Corona SDK. 1. First Go to http://www.anscamobile.com/corona/ and download the SDK for trial. 2. If you are a MAC user then download the dmg or if you are windows user then download the exe… 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 show progress bar while loading a webpage in android?

By | November 3, 2011

This is a simple example showing how to load a webpage and show a progressBar while the page is loading in android. For that you have to set a chrome client for the webview which implements “onProgressChanged” Here is the layout file. Here is the java file

How to change the default transition between activities?

By | October 26, 2011

In android the default transition between activities is to slide from left to right. But with custom animations we can change that. First create a folder inside the res/drawable folder called “anim”. Then create a file named “fade.xml” and copy this code into it. create another file named “hold.xml” in the same place hold.xml. activity_animation.xml… Read More »

How to take screenshot of application and store it in SDCARD?

By | October 26, 2011

The first part is explained in this Tutorial, that is taking the screenshot of the application (View). The second part is storing it in the SDCARD. This is possible by compressing the image bitmap to bytes and then store. Finally dont forgot to put the following permission in the manifest file.

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 create a custom ListView in android?

By | October 13, 2011

Hello all….. In today’s tutorial I will show you how to create a custom listview in android. For that we need 3java files. One holding the ListView itself another a Model object that holds the data for the listview and the third one for the Adapter which extends the ArrayAdapter class for holding the model.… Read More »

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.

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… Read More »