Tag Archives: Loans

Handling Multiple Instances of a Widget in Android and Identifying each instance with it’s own ID.

Hey everyone…….Hope all are well….. This post is about Android Widgets. This is going to be one of the bigger posts in Coderzheaven. This posts helps you to handle multiple instances of a Widget. Many of our problem is to identify different instances of the same widget. But there is a solution to this problem. Please check out… Read More »

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

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 the main.xml main.xml… Read More »

Placing Controls in a Widget in Android and Listening to the events from them.

Hello everyone.. I have already shown how to create a simple widget and add it to the home screen in my previous posts. If you have missed these posts please check it here. How to create a widget in android? In the next post I showed you how to listen to a widget delete action and delete the… Read More »

How to get Notified when a widget is deleted?

I have already covered a tutorial on how to start with widgets and how to create a simple widget here.. http://www.coderzheaven.com/2012/06/07/create-widget-android/ Today I will show you how to get notified when a widget is deleted. if you have already gone through my previous post, then there is only a small change in the “MyWidget.java” file. we have to… Read More »

Phone storage is getting low problem solved OR How to install apps on the SDCARD by default in your android device?

Often our android phones may get warning that “Phone storage is getting low” because your apps dont have space to be installed on the phone. I too had this problem. Then I found out the answer, after doing this all apps installed will go to the sdcard. First you have to enable USB debugging on your Android device… Read More »

How to download a file from a remote site in android? – Another simple example – Method -3

Hello all ……. I have shown many examples on how to download and upload files in android through this site. These are other methods for downloadign a file in android. 1. How to Download an image in ANDROID programatically? 2. How to download a file to your android device from a remote server with a custom progressbar showing… Read More »

How to create a scrolling ListView in android?

ListView is like a tableView in iPhone or iOS . In this example i will show you how to add a String Array in to the ListView and also make the listView Scrollable. First the xml file . Here the line android:scrollbars=”vertical” will make the scrolling vertically Now the java file The screen will be like this Here… Read More »

How to read a folder in the assets directory and read files from it in android?

File reading is important in android. For the put the files in the assets folder. We can able to read foldername filename Contents of the file First we read the name of the folder. “folder_array” contains all the names of the folder Then if the path is set to Then the list of file name is got. If… Read More »

ProgressBar in ANDROID…..

Progress bars are our basic needs when we want to show something for a long time or some progress takes a long time and we want to show it’s progress. Keeping that in mind ANDROID also has built in progress views. There are basically two types of progress views in ANDROID. ProgressDialog.STYLE_SPINNER and ProgressDialog.STYLE_HORIZONTAL Take a look at… Read More »

Custom Toasts in ANDROID.

First, just show an image inside a toast: This method just displays a text toast: And this method displays a Toast that contains both an image and text: