Simulating a call or SMS in your ANDROID Emulator – A simple Method

By | April 14, 2011

Hello all….. I have already covered this in another tutorial (click here for that post), but there I didn’t mention this method of simulating a call or SMS in android emulator. Let’s see how to do this… First start your emulator. Wait until it is Home. Then in Eclipse go to DDMS perspective. Look at… Read More »

How to detect shake in iPhone ? An example

By | April 13, 2011

Hi, Sometimes you may want to detect shake gesture in iPhone using your programs. But how can you detect shake gesture in iPhone? Shake gesture in iPhone can be detected by using the accelerometer. The following lines of code can be used for detecting the shake gesture in iPhone. You can use these lines of… Read More »

How to simulate an incoming call to an emulator OR Send an SMS to an emulator in ANDROID ?

By | April 12, 2011

Hello everyone…… Of course for the above question there are other ways to do it. This is one simple method Start two emulators and call each other, but the problem is it will be time consuming and memory will be consumed. Another method 1. First start your emulator and make sure it’s running. 2. Then… Read More »

How to remove box2D body from world ?

By | April 10, 2011

Hi, If you are a game developer and you are using box2D for real world simulations, you would probably need a particular body to be removed from the box2D world! But how can you remove box2D body from world ? See the following sample code which does the same. – (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {… Read More »

Expandable ListView in ANDROID using SimpleExpandableListAdapter, a simple example.

By | April 10, 2011

Hi all…… Here is a simple example of expandandable ListView in ANDROID. But I am not going to explain any code, because everything is explained inside the java file. Make sure to read it. The main.xml file. The child_row.xml The group_row.xml The strings.xml (This file contains the string for the color that is used for… Read More »

How to start telnet in Windows 7?

By | April 10, 2011

Hello all…… By default telnet is not enabled in Windows Vista and Windows 7. So you need to turn own the option for telnet . For this 1. Open control Panel 2. Programs and features 3. Turn Windows feature On or OFF 4. Check Telnet Client. Now open command prompt and run telnet

Text to speech in ANDROID, A Simple Example.

By | April 9, 2011

Hello everyone…….. In this simple example I will show you how to use Text To Speech in ANDROID. This is one of the unique features in ANDROID. Unlike iPhone , ANDROID has a built in TTS Library which supports many languages. But iPhone doesn’t have this feature. They have to depend on third-party software for… Read More »

jQuery dollar sign alternative

By | April 8, 2011

Hi, Dollar ($) sign is a shortcut for jQuery. But sometimes it may have conflict with some other JavaScript library functions which also uses $ sign. What to do then? Its simple. Use jQuery noConflict() method for creating any custom names. See for yourselves. I am going to hide! Hide it! Here ‘jqNew’ is your… Read More »

How to open a new window in Adobe AIR?

By | April 7, 2011

Hi all …. In this example I will show you how to open a new window from an adobe AIR Application. First you create a new Flex Project and named FirstWindow. Now you have FirstWindow.mxml in your project. Go on open it and copy the following code to it. Now right click on the src… Read More »

How to empty an NSMutableArray ?

By | April 6, 2011

Hi, Sometimes you may need to empty an NSMutableArray which is already initialized with some objects. You don’t need to release it and again alloc it for future use! You can simply empty an NSMutableArray using the following line of code. [yourArray removeAllObjects]; Here ‘yourArray’ is your NSMutableArray. 🙂

Make your own gesture application in ANDROID or How to use gestures in ANDROID?

By | April 5, 2011

Hi all…. In this tutorial I will teach you how to make use of Gestures in ANDROID and make your own application. Follow the below steps exactly to get an idea of how to use gestures. 1. Make a gesture Library. 2. Add your own gestures into it. 3. Export it to your applications and… Read More »

How to get information about all the applications installed in your ANDROID Emulator or Phone? / How to use getPackageManager() in ANDROID ?

By | April 3, 2011

Hi all, In this tutorial I will show you how to get the information about all the applications installed in your ANDROID phone. What you have to do is create a ANDROID project inside the package pack.GetAllInstalledApplications amd name the java file “GetAllInstalledApplicationsExample.java” and copy the following code into it. Here the “getPackageManager().getInstalledPackages(0);” gets information… Read More »

How to make Sprite Sheets ?

By | April 2, 2011

Hi, If you are a game developer then you will always need a sequence of images to be animated & the best way to do it is via sprite sheet animations. But how can a sprite sheet be made? Suppose you have a sequence of images of any animations, how will you convert it into… Read More »

How to sign Android project apk

By | April 1, 2011

This is a very tricky part and initially i was also ran in to strange problems . Before uploading to android market you must do the following steps. Create a Certificate Signing your application apk Finally Zip align the signed apk First the application you created should be converted to apk format. For this if… Read More »

“Conversion to Dalvik format failed with error 1” Error in ANDROID / Eclipse.

By | March 30, 2011

This is a normal error when you import some project into eclipse. I will show you how to solve this First try cleaning the project from project->Clean. If this didn’t work, then try these Follow these steps 1. Go to Project » Properties » Java Build Path » Libraries and remove all except the “Android… Read More »

"Conversion to Dalvik format failed with error 1" Error in ANDROID / Eclipse.

By | March 30, 2011

This is a normal error when you import some project into eclipse. I will show you how to solve this First try cleaning the project from project->Clean. If this didn’t work, then try these Follow these steps 1. Go to Project » Properties » Java Build Path » Libraries and remove all except the “Android… Read More »

Cocos2D Sprite Sheet Animation

By | March 29, 2011

Hi, Suppose you have a sprite sheet of the desired animation you want. But how will you use that sprite sheet animation in your program using cocos2D? That’s simple. See the following code first. Note : But how to make a sprite sheet? That topic can be found here. Making of sprite sheets from individual… Read More »

Email id verification using Objective C

By | March 29, 2011

Hi, In order to verify an email address you have entered is valid or not using Objective C, use the following code. – (BOOL) checkYourMail: (NSString *) myEmail{ NSString *checkMail= @”[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”; NSPredicate *matchMail = [NSPredicate predicateWithFormat:@”Matching %@”, checkMail]; return [matchMail evaluateWithObject:myEmail]; } 🙂