In my previous post I showed how to serialize an object and save it in sdcard in a file and retrieve it. Pull out the file from the sdcard and then create a folder named “raw” inside the “res” folder and copy it. This example shows how to retreive it when it is in the res/raw folder. Here… Read More »
Serializing a class file provides a fast and efficeint way to store information produced by your application! What is serialization? Serialization is essentually taking a screenshot of a class file and its contents. For example, lets say you have the following class: Now we will save this data to a file in the SDCARD. Make sure to add… Read More »
Hello all.. Today I will show you two simple ways to remove title in an android alertdialog. Actually you can do this in two methods. Method 1 That takes a custom layot file, inflates it, gives it some basic text and icon, then creates it. Method 2 But it doesn’t work when creating an AlertDialog (or using the… Read More »
This is really simple in android. TextViews has a property called “lineSpacingExtra” which you can change to set the line spacing. OR you can call textView.setLineSpacing() in the java code itself.
Here is a simple Application on how to use flashlight in android. Now the layout file main.xml. AndroiManifest.xml file contents. Make sure to add the permissions. Download the android java source code from here. please leave your valuable comments on this post.
We may have applications in which we may have to make repeated calls to a webservice. At that time services may be useful. This is such an example in which we will be creating a Service in android to create a repeated call to a webservice in a time delay of some seconds or milliseconds. OK We will… Read More »
Among the several fun games which have changed the name of true addictive games, Temple Run stands in the top. It is a huge hit in the App Store and Android Store. It is a simple endless running game with a few monsters chasing you. It is one of the best selling Mobile Application in the App Store… Read More »