How to create a simple App Launcher in Android?

By | March 22, 2013

You have seen Launchers listing your apps. Ever wondered how they get the list of all apps. This program help you to list all apps installed in your phone and in a gridview and invoke them. Here we use this class.. PackageManager Class for retrieving various kinds of information related to the application packages that… Read More »

How to encrypt and decrypt a file using “AES” algorithm in Android? – Google’s Advice

By | March 20, 2013

This is a simple example showing how to encrypt and decrypt a file in android. what we will do in this post is 1. Generate a key for encrypting our data. 2. Create a file and save data using ENCRYPTION with our generated key to the SDCARD. 3. With the help of the key DECRYPT… Read More »

Highest Rated CEOs 2013

By | March 17, 2013

Do you approve of the way your CEO is leading the company? See which CEOs have the highest approval ratings. The Glassdoor list is based entirely on employee feedback shared during the past year. Check out the Top CEOs of 2013 and caste your vote here.. http://www.glassdoor.com/50-Highest-Rated-CEOs.htm

How to create transparency in your activity or dialog in android – different methods?

By | March 16, 2013

There are different ways for making an acitivity transparent. First method 1. Through XML in AndroidManifest like this. Here we are using Android’s built in theme. Method 2 Through styles create a style like this in your styles.xml and applying like this in the AndroidManifest.xml Check out this post for the complete implementation. http://www.coderzheaven.com/2011/07/20/how-to-create-a-transparent-activity-in-android/ Now… Read More »

How to Customize “Force Close” Dialog in Android?

By | March 13, 2013

An interesting post.. Everytime you write an app, it may or may not crash and we often see the “Force Close” Dialog. But what if we can customize the “Force Close” Dialog itself. This is done using “UncaughtExceptionHandler” class. This post explains this. here I am knowingly crashing the application like this int y =… Read More »

How to create Gradient Buttons Dynamically without XML in Android?

By | March 10, 2013

Hello all.. I have shown you how to create gradient buttons in Android using XML in this post. Now I will show you how to create these gradient buttons dynamically. We will start with a class that extends StateListDrawable similar to state-list we use in XML UIGradientSelector.java Now the class that extends PaintDrawable Class. UIGradientDrawable.java… Read More »

How to Download a PDF File and open it in Android using an installed PDF Reader?

By | February 18, 2017

Actually this is fairly simple. This simple code does this. Here is the complete program that shows how to download a PDF File and open it in Android using an installed PDF Reader.

Samsung Galaxy s4 Rumours – Bigger, Better, Eye-Based Scrolling

By | March 5, 2013

We know Samsung is set to reveal its Galaxy S4 smartphone on March 14th, and that the company has been desperately trying to spin up the same sort of pre-release hype about the device that Apple usually benefits from–including a rather strange promotion campaign involving a young “secret messenger” called Jeremy. Now a source that… Read More »

Budget iPhone 5 Coming Soon

By | March 2, 2013

The budget version of Apple’s latest iPhone will cost roughly $330 (£220), priced in order to appeal to young, middle class consumers in countries like China and India. The claims about the price and the imminent release were made on the Japanese website Macotakara, following on from earlier reports about Apple plans for a cheaper… Read More »

iPhone Mini launch this summer

By | February 22, 2013

A low-priced iPhone makes a lot of sense, Morgan Stanley says, and it even could hit the market this summer. Katy Huberty, an analyst with the banking firm, noted that after her meetings with Apple Chief Financial Officer Peter Oppenheimer, she’s convinced that innovation remains a top priority for the Cupertino, Calif., electronics giant. She… Read More »

How to create layouts that change according to the phone and Tablet in Android Using Fragments in SDK Less than HoneyComb?

By | February 19, 2013

Hello all….. This is a simple tutorial to show how to create a FLEXIBLE UI for both Phone and Tablets in Android. In the figure below you can see the result after running this tutorial. Tablet in LANDSCAPE MODE TABLET IN PORTRAIT MODE TABLET IN PORTRAIT MODE – AFTER CLICKING THE LIST. PHONE IN PORTRAIT… Read More »

How to create layouts that change according to the phone and Tablet in Android Using Fragments?

By | February 19, 2013

Hello all….. This is a simple tutorial to show how to create a FLEXIBLE UI for both Phone and Tablets in Android. In the figure below you can see the result after running this tutorial. Tablet in LANDSCAPE MODE TABLET IN PORTRAIT MODE TABLET IN PORTRAIT MODE – AFTER CLICKING THE LIST. PHONE IN PORTRAIT… Read More »

Using DialogFragments in Android – A Simple example.

By | June 24, 2016

A little on Dialog Fragments A fragment that displays a dialog window, floating on top of its activity’s window. This fragment contains a Dialog object, which it displays as appropriate based on the fragment’s state. Control of the dialog (deciding when to show, hide, dismiss it) should be done through the API here, not with… Read More »

How to extend a Dialog class and write it’s button click on your activity using Interfaces in Android?

By | February 13, 2013

Hello all……. This tutorial is all about writing your own Dialogs and implementing the click or touch on any of it’s views in another class (say another activity). This is primarily useful if we have a common dialog and have to handle it’s button click in different ways in different activities. Here what we will… Read More »

How to write interfaces in java or Android?

By | August 9, 2017

This tutorial is about how to use interfaces in java or Android. What is an Interface? An interface is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. An interface is not a class. Writing an interface is similar to writing a class, but they are… Read More »

How to create transparency without using image in Android?

By | February 4, 2013

Transparency in a background of a View in android can be achieved in two ways. 1. By providing a transparent image. 2. By providing an XML that has as shape with end, starting and middle color. This is a sample XML that creates a transparency. bg_gradiant.xml Note : By Simply providing a color doesn’t creates… Read More »