Category Archives: ANDROID

How to start with Android – Basics and Fundementals.

By | May 13, 2013

Hello all This post for everyone who like to start with android and know the basics. It includes Introduction to Android Android Architecture Dalvik Virtual Machine Android Application Fundamental Components The above links will be going by another android blog which also teaches you the basics of Android. Check out these links and start coding… Read More »

How to use ImageSwitcher in Android?

By | May 12, 2013

You can read more about ImageSwitcher here http://developer.android.com/reference/android/widget/ImageSwitcher.html Click on the link below to download the code. This is the layout that contains the ImageSwitcher What we will do is we will load some images into the Gallery and then load each image into the ImageSwitcher on clicking on each item in the Gallery. Here… Read More »

ListView Bottom to Top Animation in Android.

By | May 10, 2013

Like my previous posts animation chapter is again continued. This time the animation in on a ListView from Bottom to Top. You have already seen animations from Top to Bottom in my previous posts. See some of my posts here. All animation posts from CoderzHeaven is here Click on the download link at the bottom… Read More »

Creating a Drawable animation in Android.

By | May 3, 2013

This is a simple example of how to animate a drawable in Android. This example is from the official android demo applications. Here we have 5 java classes. AnimateDrawable.java AnimateDrawables.java GraphicsActivity.java PictureLayout.java ProxyDrawable.java AnimateDrawable.java AnimateDrawables.java GraphicsActivity.java PictureLayout.java ProxyDrawable.java Download the complete source code from here Join the Forum discussion on this post

GridView RandomFade animation in Android

By | May 1, 2013

In some of my older posts I have already showed a lot of animations on ListView and GridViews. Search coderzheaven for ListView and GridView animations if you want to see the articles and posts. This is also yet another post on animation. Here what I will do is create an animation in a GridView such… Read More »

Cascade animation in a ListView in Android.

By | April 30, 2013

Here is a simple example for cascade animation of a listview in android. We use these classes for achieving this. 1. AnimationSet Represents a group of Animations that should be played together. The transformation of each individual animation are composed together into a single transform. If AnimationSet sets any properties that its children also set… Read More »

Multiple Selection GridView in Android

By | April 26, 2013

This is a simple post that helps you to do multiple selection in a ListView. Check out previous posts for 3D animation in a Listview. At first we will see the XML layout file. This layout contains a gridview since we are dealing with it only. grid_1.xml Now the MainActivity that does all the work… Read More »

Different types of Animation – Push Up in, Push Up Out, Push Left in, Push Left Out, HyperSpace In, HyperSpace Out in a ViewFlipper in Android.

By | April 22, 2013

Hello all…. This is going to be a big post.. Check out my previous post for a rotate3D animation between a ListView and an Image. How to create a rotate 3D Animation between a ListView and an ImageView in Android? Today I will show you different types of Animations using ViewFlipper in a textView. Here… Read More »

How to create a rotate 3D Animation between a ListView and an ImageView in Android?

By | April 21, 2013

At first we will create a class called “Rotate3dAnimation” which is responsible for the 3D Animation. The Rotate3dAnimation.java looks like this. The Matrix class holds a 3×3 matrix for transforming coordinates. Matrix does not have a constructor, so it must be explicitly initialized using either reset() – to construct an identity matrix, or one of… Read More »

Samsung Galaxy S4

By | April 8, 2013

GENERAL 2G Network GSM 850 / 900 / 1800 / 1900 3G Network HSDPA 850 / 900 / 1900 / 2100 4G Network LTE SIM Micro-SIM Announced 2013, March Status Coming soon. Exp. release 2013, April 26th BODY Dimensions 136.6 x 69.8 x 7.9 mm (5.38 x 2.75 x 0.31 in) Weight 130 g (4.59… Read More »

How to create a simple PopUp Menu in Android?

By | April 7, 2013

Hello all… This is a simple tutorial for creating a simple popup menu like the one you see in the action bar options button. Actually this is fairly simple with actionBar. But if you don’t want the actionbar and only want the popup menu, then here is the solution. You can read more about PopupMenu… Read More »

How to send Data between two individual applications in Android?

By | April 1, 2013

We can send data between two individual applications in Android if the receiving application is configured to received that type of data. For example if an application is to receive Image data then it’s manifest should contain the ImageFilter as Shown below For example ac activity in the receiving application is named “Receiver” then its… Read More »

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 19, 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 | March 6, 2013

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 »