Hello all.. Today I will show you how to align the message text to center in an AlertDialog. By default it is left aligned, so we have to get a reference to it to align it to center.This is how we do it. Please leave your valuable comments on this post.
A new feature is coming to your android and blackberry phones which allows you to track your phone if it is lost. please check this link for more information on this.
Hello android lovers, In today’s tutorial I will show you how to 1. Create a text file and save a textfile in your SDCARD in your preferred path. 2. Read the contents from the same file and show it in a TextView. For writing a file we use the FileWriter class and for reading the textfile we use… Read More »
Hello all… You may already know how to uninstall an android apk through interface in android emulator or device. But there is another way to remove the apk. It is through command line. here is how you do it. First navigate to android tools directory from your command line. Here I have installed android in the “G:SoftwaresANDRIOD” directory.… Read More »
Hello all.. The latest development in android is that google has removed the menu button from android, instead they provide something called the actionbar like in the Honeycomb devices. Google introduced the ActionBar class as the standard solution to make actions from the user options immediately visible and quick to invoke The ActionBar looks like this When invoked… Read More »
Hello everyone, Today I will show you a simple trick of scaling the android device through command line. Ofcourse this can be done using the interface, but the otherway is using the command line. Through interface is like this . Through command line Change the scale value and see how your emulator changes. please leave your comments if… Read More »
Downloading an image in corona is really easy. Check out the example. Check the console to see where the downloaded file is saved. Download the complete source code from here.
To create gradient text in corona, you have to download ‘Corona daily build 612’ which has functions like setFillColor() etc. You create a new gradient object by calling graphics.newGradient(). You can pass (and reuse) the object in calls to text:setTextColor() and rect:setFillColor(). Here is an example.
Here is a way to get the number of children in a displayGroup in corona. Each children ca be accessed via the child index.
Hello all, In todays tutorial I will show you how to work with sqlite databases in android through command line. Advantages 1. You can browse any number of databases. 2. You can write any queries and execute. First go through these tutorials to get a glance of how to work with sqlite databases in android. 1. http://coderzheaven.com/2011/04/sqlitemanager-plugin-for-eclipse/ 2.… Read More »
Hello Friends Today I will show you how to save data in cocos2D android in a database and reload it when the game starts. This has been always a problem withe game developers for cocos2D android. I will show you a way to save almost any number of data in a database using SQlite in android. Check these… Read More »
Hello everyone.. There has been a problem with corona that when you place one view over the other and when you touch the object in front of the other, touch will be migrated to the object below it. To prevent this there is a mechanism in corona. Here is how we solve this in corona. here is a… Read More »
This is actually very simple in corona.
It is very simple to get which device are you running the app in corona SDK. Take a look at the code snippet.
Emulator Keyboard Mapping The table below summarizes the mappings between the emulator keys and and the keys of your keyboard. Emulated Device Key Keyboard Key Home HOME Menu (left softkey) F2 or Page-up button Star (right softkey) Shift-F2 or Page Down Back ESC Call/dial button F3 Hangup/end call button F4 Search F5 Power button F7 Audio volume up… Read More »
Please check the LogCat for output. Join the Forum discussion on this post
Hello all….. In today’s post I will show you how to create a single selection list in android. Here is the main.xml Now this line in the java file creates the single choice. setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_single_choice, android.R.id.text1, names)); Now this is the full java code
This simple Activity creates a reflection of the provided image. Download the complete source code for above example from here.
Hello all… Today I will show you how to get notified when a video completes playing in android. PLease check this post for playing a video and the resources. First create a folder named “raw” inside the “res” folder and copy a video inside it. Now copy the xml from this link. For listening to the video completion… Read More »
Hello everyone…. In today’s tutorial I will show how to start with a HelloWorld Application in PhoneGap for ANDROID. So what is PhoneGap PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores. Follow these steps exactly to build the helloworld application. 1.If you… Read More »
Hello everyone Today I will explain how will you call a function that is defined inside the java android code from a webview. For this we need to add a webviewclient in android for the WebView we are adding in the xml. Then we have to register the webviewclient with the WebView we are creating using this method.… Read More »