Category Archives: ANDROID

Lowest Cost for LUMIA 900 on Amazon- Get it fast.

By | May 6, 2012

For AT&T customers eying one of Nokia’s Windows Phone 7 devices as an upgrade, Amazon is offering the stylish new Lumia 900 on the cheap… real cheap. So cheap, in fact, you have to wonder what’s up. Are Nokia’s phones failing on the market even though they’re getting great reviews? Or is Microsoft merely trying… Read More »

Best Budget phones in android market today.

By | May 3, 2012

Here are my choice of some of the best phones in android market today. 1. Sony ericsson Xperia Neo. We know Sony always makes stylish phones. Here is another stylish phone from Sony Ericsson. Specifications. GENERAL 2G Network GSM 850 / 900 / 1800 / 1900 3G Network HSDPA 900 / 2100 HSDPA 850 /… Read More »

How to sign an android APK, a simplest way

By | May 3, 2012

Hello all.. This post is also about how to sign an android apk to publish it to the android market. I have already shown another method to sign the apk, which is through the command line. How to sign an android APK ? – a simplest way Here is another simple method without using the… Read More »

Samsung Galaxy S3 Features, Specifications And Release Date – The iPhone Killer is coming.

By | May 6, 2012

According to sources, the specs of the Samsung Galaxy S III have been leaked on the Web. These are some of the features from the sources.. A 4.8-inch full HD 1080P resolution with 16:9 aspect ratio. It will be powered by a 1.8GHz quad-core Samsung Exynos processor. Features a front facing 2 MP camera for… Read More »

How to download a file to your android device from a remote server with a custom progressbar showing progress?

By | March 4, 2016

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 »

Zoom In animation between Two Activities.

By | April 28, 2012

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 »

How to move a body manually in Box2D? or Give a force to a body in Box2D, iPhone.

By | April 28, 2012

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 »

How to include multiple c files to compile in android NDK?

By | April 24, 2012

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 »

How to upload an image from Android device to server? – Method 4

By | February 14, 2016

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 »

Pause And Resume iPhone Game Using Cocos2D

By | April 26, 2012

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 »

JSON IN ANDROID.

By | June 20, 2012

Complex JSON String parsing in ANDROID http://www.coderzheaven.com/2011/06/10/complex-json-string-parsing-in-android/ Parsing JSON Object in ANDROID. http://www.coderzheaven.com/2011/06/09/parsing-json-objects-in-android/

How to explicitly free memory in android OR Release unwanted memory in Android?

By | April 24, 2012

If you are writing memory consuming applications there is a bigger chance that your application may be running out of memory after sometime. So there are some methods in android that invokes the garbage collector explicitly. See the following function which invokes the garbage collector to free a lot of memory. A little explanation about… Read More »

Using Tabbars in ANDROID, A Simple Example……….

By | April 29, 2012

This is a simple example showing how to use tabbars in ANDROID. First create a new project and copy this code to it. Now create three another java files by right clicking the src folder and name it FirstTab.java, SecondTab.java, ThirdTab.java. Now copy the following code to FirstTab.java. SecondTab.java Now ThirdTab.java. Main.xml file AndroidManifest.xml You… Read More »

How to read and write a text file that is stored in your application sandbox in ANDROID?

By | September 7, 2012

Hi all….. In this post I will show you how to read a text file in ANDOID. Let your file is in the your application sandbox of your ANDOID project, i.e the file’s location is /data/data/your_package_name folder. To view this folder -> open File Explorer and expand each folder. For this example to work first… Read More »

Select an Image from gallery in ANDROID and show in an ImageView.

By | December 30, 2018

Hi all In this tutorial I will show you how to get an image from your phone gallery and show it in an imageview.Here we use intents to open up the image gallery and get the image URI.   Demo   Watch Video Tutorial   Steps : Ask storage permission from the user if the… Read More »

How to change the hint text color in android?

By | April 21, 2012

Hello all.. This simple example will show you how to change the hint text color in android Here is the java code to simply do this. here is a sample project to view the difference. This is the contents of the main java file. The main.xml file Here I am setting a read color to… Read More »

How to get Device Orientation in Cocos2D, iPhone in Objective C?

By | June 26, 2012

Hello all…… We may need to know that what is your current device orientation. Using the below code you can do this. Note: If you have to explicitly set the orientation of your phone to any of the above you can set this in the appDelegate.m file. You can put an “||” (OR) symbol in… Read More »

How to inherit from other styles or how to extend your own styles in android?

By | April 18, 2012

Hello all…. I have covered many tutorials on styles on how to implement and use them. Today I will show you how to inherit from other styles or how to extend a style already created by you and use it for applying to other views. Here is one of my previous posts. http://www.coderzheaven.com/2012/02/03/changing-the-style-or-theme-of-default-alertdialog-in-android/ Another one… Read More »

Simulate a Balloon in Box2D, iPhone or ANDROID

By | April 24, 2012

Hello……… Sometimes you may want your body to act against the gravity of the world. One method to do this is described below. First what you have to do is to make a body in the shape of a circle and give it the image of a balloon as the userdata. Then in the tick… Read More »