Tag Archives: ANDROID

How will you create a custom Notification in Android with a custom Layout?

By | September 15, 2012

This sample application does that. First create an xml for your notification. custom_notification.xml Now the java code.

How to Uninstall Avast Anti Theft for Android?

By | September 14, 2012

If you have installed Avast and the Avast anti theft application on your Android and decide you no longer need it, you may find it difficult to remove. It is protected so you first need to remove it’s protection. Here’s how to do it. Go to Device Settings Security Select Device Administrators – you can… Read More »

How to create a Slide from Left animation while deleting a row from a ListView in Android?

By | September 12, 2012

Hello all…… I have written a lost of posts on Listviews. You can see that by just searching Listviews in my site. Today I will show you how to create a slide out animation while we delete a row from a ListView. So this is the xml that contains the ListView. Let it be in… Read More »

How to read and write files to SDCARD and application SandBox in Android – A complete example?

By | September 6, 2012

Here is a complete example of How to read and write files to SDCARD and application SandBox in Android. First create a new project and inside the mainActivity paste this code. Now create another class named MyFile.java and copy this code into it. Now the layout for the xml file. Note you should give this… Read More »

How to show two different DatepickerDialogs on same activity with only one listener function in android?

By | September 1, 2012

In android for each time picker Dialog we can associate with a dialog. So with this dialog and a global variable we can have any number of Dialog listeners. Here is the sample java code. This is the layout file – main.xml MyAndroidAppActivity .java Please leave your valuable comments on this post.

Which you think is the best – Android or iPhone?

By | August 25, 2012

This is a question that has been here since 2007. We know there are many advantages for Android phones and Apple’s iPhone. So what you think, which one is the best. I will say my personal opinion. And I think Android is the best. What is your opinion? Are you an iPhone or ANDROID User?… Read More »

How to start with ActionBar in Android?

By | August 23, 2012

With Android 3.0 Google eliminated the need of hardware menu button which is replaced by Action Bars. Here is a quick example on how to use ActionBars. First create a new project and name it ActionBarExample. Now create a folder named “menu” in res folder and create a new XML file inside it named “action_bar_menu.xml”.… Read More »

How to set different layouts for Portrait and Landscape in Android?

By | August 20, 2012

This simple example shows how to set different layouts for portrait and Landscape in Android. If you need a detailed explanation please check this url http://developer.android.com/guide/practices/screens_support.html Android Supports these different categories of screens. 1. xlarge screens are at least 960dp x 720dp 2. large screens are at least 640dp x 480dp 3. normal screens are… Read More »

How to stream an audio in Android?

By | August 14, 2012

This is a simple example to how to stream an audio in android. Here is the java code for that. This is the xml that contains the button. When you run this program you will see a button and on clicking on that button you will see a dialog with message “Buffering…..”. Once the buffering… Read More »

How to load an image from the assets folder in android?

By | August 9, 2012

Here is a simple example showing how to load an image stores in assets folder in android? Done.

How to read a serialized object from a file in the raw folder in android?

By | July 30, 2012

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… Read More »

Temple Run : Brave – iPhone/iPad & Android App Review

By | July 2, 2012

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… Read More »

Creating a custom Sliding GalleryView with Paging in android

By | June 28, 2012

This is a simple example showing A sliding Gallery in android. This example shows a sliding gallery with a paging Control and a changing page text which also indicate the page change. Create a new project named “SlidingGallery” and copy this code into “SlidingGalleryDemo.java“. My Activity name is “SlidingGalleryDemo.java” here. Now create a new class… Read More »

How to add a new contact programmatically in android?

By | June 18, 2012

We all know how to add a new contact to our android devices without programming right. OK that’s a normal man’s use. But what from a programmer’s view. This is the sample java code that helps you to add contact programatically. After running this programs please switch to contacts application on your device to see… Read More »

How to override hardware Home button in android? OR How to listen to home button click in android?

By | June 2, 2012

Hello everyone… In this post I will show you how to listen to hardware button in an android smartphone. This post especially shows how to listen to the home button in android. But my advice is never override the home button in your app. Home button is to move the currently running process to background.… Read More »

WaterProof, DustProof and scratch resistant Smartphones arriving in the market – Xperia Go and Xperia Acro S

By | June 2, 2012

Sony has introduced two new durable and waterproof handsets. For once, rugged doesn’t equate with bad design. The two Android-powered handsets are svelte and streamlined but feature extra protection like scratch-resistant displays and wet finger tracking. Sony announces Xperia S, Xeria P, Xperia U and Xperia Sola in India Sony Xperia U goes on sale… Read More »

How to use Accelerometer in Android?

By | May 30, 2012

This is a simple post showing how to use accelerometer in android. This java code prints the values of x,y and z axis in the console. Leave your comments on this post. Find Coderzheaven on facebook, twitter , google Plus and MySpace for more updates.

Facebook May Acquire Opera

By | May 28, 2012

It is rumoured that facebook is employing ex- Apple iPhone and iPad Engineers to build their own smartphone. Now there is another rumour that facebook may acquire Opera. Facebook could be set to pursue a deal for web browser firm Opera, as the social network seeks to unlock new business opportunities. Flush with a $16bn… Read More »

How to add checkboxes and radio buttons to ListView in android? OR How to set single choice items in a ListView in android?

By | May 25, 2012

To create a list of multiple-choice items (checkboxes) or single-choice items (radio buttons) inside the dialog, use the setMultiChoiceItems() and setSingleChoiceItems() methods, respectively. If you create one of these selectable lists in the onCreateDialog() callback method, Android manages the state of the list for you. As long as the Activity is active, the dialog remembers… Read More »

How to create CustomProgressBar in android – Part 3?

By | May 23, 2012

Hello all… In my previous posts I have shown two methods to create custom progressbar in android. Check out these tutorials to find out how? 1. How to build a custom progressBar in android- Part 2? 2. Custom progressbar in android with text – part 3 Today in this post I will show you a… Read More »

Custom progressbar in android with text – part 3

By | May 18, 2012

Hello all…… I have posted two posts on how to customize a progressbar in android. 1. Custom Indeterminate progressBar for android? 2. How to build a custom progressBar in android- Part 2? Here is another one with update text on top of the progressbar. Here is how we start. After creating a fresh project create… Read More »

HTC Desire C specifications

By | May 14, 2012

The Desire C has a 3.5-inch screen with a resolution of 320 x 480. It uses a 600 MHz processor and is apparently being marketed as a 3.5 G device, presumably meaning HSDPA. Internal storage is 4 GB, and the phone has a five megapixel camera. The phone will run Android 4.0. . It’ll run… Read More »

PhoneEasy 740, the world’s simplest Android phone!

By | May 14, 2012

The latest device to be unveiled by Doro is probably their most interesting ever, as it combines Android’s functionality with an easy to use interface and pretty decent hardware. The PhoneEasy 740 is still in the last stages of pre-production, but the manufacturers are hoping to iron out all the little kinks in time for… Read More »