CoderzHeaven

Actually this is really simple. I have already posted an example for how to download a file in this post. How to Download an image in ANDROID programatically? This is another one little different with a progressbar included. Previously I have shown three other methods to upload files to a server. Check these posts to […]

Read More

Hello everyone… I have already shown you how to override default animation between activities. Today I will show a zoom in and out animation between activities. Take a look at this post for another animation between activities. Create files named zoom_enter.xml and zoom_exit.xml in the res/anim folder. zoom_enter.xml file contents. zoom_exit.xml file contents. Now replace […]

Read More

Hi, For playing audio – background music or sound effects – using Corona SDK, do the following, 1. Load the audio stream (background music or sound effects) 2. Play the audio It will play the background music on channel 1, loop infinitely, and fadein over 5 seconds. Loop 1 will set it to play once! […]

Read More

This is a sample code to move a body in Box2D . First you have to make a body with variable name “moving_rec” and call the below function in a schedular at regular intervals. -(void) moveBody{ b2Vec2 force = b2Vec2(0,0); force = b2Vec2(0,3); //Giving the x an y to negative will move the body in […]

Read More

Java swing provides a native look and feel that emulates the look and feel of several platforms. Here i am going to create a Button and adding it to Frame. For this first create a Jframe object,a JPanel object and a Container object JFrame f = new JFrame(); JPanel panel1 = new JPanel(); Container con […]

Read More

Hi, For pausing a cocos2D game, then use the following line of code. For resuming a cocos2D game, then use this line of code.

Read More

I ran into problem when I had multiple C files in my project. Single C file was OK for me. I was getting undefined reference error while doing this. Then I found out the solution after a lot of search in google. You can check this post before going through this post. This is about […]

Read More

Hello all…. This post is also about uploading an image to server from your android device. Previously I have shown three other methods to upload an image to a server. Check these posts to refer this. 1. Uploading audio, video or image files from Android to server 2. How to Upload Multiple files in one […]

Read More

More than usually we need to apply the functions of Pause and Resume/Play for our games. In Mac’s cocos2D programming it’s more than simple. Simply use the following code for Pause & Resume where ever you want! /*For Pausing the game*/ [[CCDirector sharedDirector] pause]; [self pauseSchedulerAndActions]; //Call for pausing all schedulers and actions /*For Resuming/Playing […]

Read More

Hi, Most probably you may have encountered a situation where you have to refresh the web page in your code. Here is, how it could be done using JavaScript. Sample Refresh Here on button click it will call the function ‘refresh_yourPage()’, and it will refresh the page! 🙂

Read More