Sometimes you have the need to set up some app-wide configuration information in an Android app or need to create a class that can be used in multiple projects with a generic way of setting configuration values. This is particularly useful for things like API keys that will probably be different across apps but should be accessible in… Read More »
Today’s post is about animation, a beautiful animation, exploring capabilities of android. You can click on the link to download the code. Here we will have three java classes and no XML files. 1. GraphicsActivity.java 2. PictureLayout.java 3. Sweep.java At first we start with PictureLayout.java Now our second java file, GraphicsActivity.java No need to declare this activity in… Read More »
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 is the java… Read More »
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
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 for the multiple… Read More »
This sample code comes handy when you have to check that an application is already installed in your ANDROID Phone. Call the below function appInstalledOrNot() with the package name of the app installed on the ANDROID Device as a string parameter. This function returns true if the app is installed otherwise returns false.
Hi all, In this tutorial I will show you how to get the information about all the applications installed in your ANDROID phone. What you have to do is create a ANDROID project inside the package pack.GetAllInstalledApplications amd name the java file “GetAllInstalledApplicationsExample.java” and copy the following code into it. Here the “getPackageManager().getInstalledPackages(0);” gets information about all the… Read More »