How to set a tilt based gravity using Corona accelerometer ?
Hi, For setting a tilt based gravity using Corona Accelerometer, use the following sample of code. 🙂
Hi, For setting a tilt based gravity using Corona Accelerometer, use the following sample of code. 🙂
Hello everyone… Today I will show you how to close all views in android in a single click of a button. Basically if you open a number of activities, each activity is stacked one above the other like a stack if you are not calling finish() on each activity. But there is a way to… Read More »
Here is a simple example on using a countdown timer in android. Here is the Layout XML(main.xml)
Hi, For getting touch location in Corona, use the following code,
Hi, Runtime events will not be removed automatically — EVER! So for removing runtime events in Corona use the following line of code, 🙂
Hi, For getting touch ‘began’, ‘moved’ & ‘ended’ in Corona, use the following code. 🙂
Hi, For getting touch ‘began’, ‘moved’ & ‘ended’ in Corona, use the following code. 🙂
Hi, For getting touch ‘began’, ‘moved’ & ‘ended’ in Corona, use the following code. 🙂
Hi, For adding a label/text to an image in Corona, using Lua, use the following code, 🙂
This sample helps you to find the size of a file in KiloBytes. Here I am pushing a video file on to the device using this method and trying to find it’s size. Make sure you give the exact file name because file name is case sensitive and push the file only in the sdcard… Read More »
Hello everyone , In today’s tutorial I will show you how to how to use RadioButton group in Android. Lets go directly to the code. Let’s see the layout for the RadioGroup first. The file is named main.xml This will create a layout file with a radioGroup with 5 radioButtons and a button to clear… Read More »
Hello everyone, I have shown two methods to upload files in android. In today’s tutorial I will show another simple method to upload files. With this method you can upload multiple files in one request + you can send your own string parameters with them. Here is another method on working with uploading of images.… Read More »
I have already shown how to use seekBar in android. This simple snippet helps you to get the current progress in the seekbar. It’s same code from this post, only thing is I added the getProgress method. Check the Logcat for the current progress or the TextView in which I am showing. Take the xml… Read More »
Here is a simple example to create an autocomplete textView in android. After creating an array of values for the dropdown we will set it as adapter for the textView. Check out the code. Here is the main.xml file
Hello everyone.. I have shown one way to get the deviceID in android in this post. Here are some other ways by which you can get the unique device ID of an android device. First Method… Second Method Third Method Make sure to add this permission in your AndroidManifest file These codes may depend on… Read More »
This is a simple demo on aligning a text in Android. You can check out for more details at the developers site. This code explains how to write a String or text on a canvas and how to give it a custom font or inbuilt font programatically, change the color of the text or canvas… Read More »
This example shows how to record an audio in android and save it in your path and send it as an email attachment. This example is taken from the developers website. Note : You should run this on the device otherwise it will not work. This example will open up an email client after recording… Read More »
Hi, Given below, is an example for passing a value to a function in JavaScript.
Hi, For converting a string to upper case in javascript, use the following code. It will give you ‘CODERZHEAVEN’ 🙂
Hello everyone……. Today I am going to show you how to set up a repeating alarm in android. In the previous post I showed you how to set up a simple alarm. An in this post I will show you how to set Up a Repeating Alarm. For this you need an extra class just… Read More »
Today in this tutorial I will show you how to use AlarmService in android. For this you have to first create a project named AlarmDemo and copy this code into it. We use the AlarmManager class for creating an Alarm service. Here we are setting the time to 10 seconds so after 10 seconds a… Read More »
Hi, For calling a function after a definite time interval in Cocos2D, use the following code. this will call the function ‘yourFunction’ after 7 seconds. 🙂
Hi, For adding a custom font in a UITextView, use the following code. 🙂
Hi, For showing particle effects repeatedly in Cocos2D, use the sample code. This will show the effect ‘yourEffect’ repeatedly in your game. 🙂
Hi all.. Most of our visitors had problem with one of our previous post on Android-php connection. So here I am posting another simple example to connect with a php file. Here I am simply putting an echo in the php file which ehoes back the data from the android side. Here are the things… Read More »