Flitering a ListView using an input from an EditText in Android.

By | December 14, 2011

Hello everyone In today’s tutorial I will show you how to filter a ListView based on an input from the EditText. This is really simple we just need to call getFilter().filter(search_string) on the adapter to filter the values from the ListViews. Just take a look at this example. Here is the layout file main.xml Here… Read More »

Most Common and most important String functions in Corona.

By | December 12, 2011

Here are some of the string functions that are most commonly used in Corona SDK. In this example you can find all the common string functions with a wroking example for each. This example contains functions to 1. Check the first character in a string 2. Check the last character in a string. 3. Changing… Read More »

SlidingDrawer in Android, A simple example.

By | July 12, 2013

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 »

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 | June 3, 2012

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 | May 23, 2012

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 | May 31, 2012

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 | June 4, 2012

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 | February 21, 2013

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 »