By Goran Siric on 2/28/2012 9:59 PM

If you recently started to develop applications for the Android platform (or any other mobile platform) it is likely that you will encounter the problem of designing user interfaces. Have you realized the importance of ListView control in developing android applications? That is what I learned the hard way. Don't allow this to happen to you too.

By Goran Siric on 12/12/2011 9:24 PM

How to connect to your localhost web server (localhost) from the Android application.

By Goran Siric on 11/30/2011 9:14 AM

Here you will find instructions how to:

- connect to your local web server (localhost) from Android application.
- request web page using http GET method 
- send data to a web page using QueryString parameters
- request web page and send data to it using http POST method 

By Goran Siric on 10/25/2011 2:31 PM

See how you  can check in your code if your Android application is running in debug or release mode. 

By Goran Siric on 10/25/2011 8:27 AM

If you found that your R (resource) generated class in Android project have errors you will want to force Eclipse to rebuild that class. To force Eclipse to rebuild generated resource class (R), you just need to click on Project->Clean menu, and then select which projects you want to clean. 

In my case rebuilding generated class did not helped because there was error in my XML layout file and class again had the same error. So if you ever have error in your R (resource) generated class, it is better to first check your error log and find where in the layout or resource files you have error. Usual error is wrongly named resource id of control. After you fix that error and save changes error in R class will usually disappear.

By Goran Siric on 10/10/2011 9:36 AM
If you are new to Android it is good to know that there are some default icons in Android you can use in your own applications. 
By Goran Siric on 10/3/2011 3:06 PM

Learn how to create android buttons with image and  text.. Here you will find how to create basic buttons with image and text and how to create button with complex layout using realative layout to define position of text and image controls on the button. 

By Goran Siric on 9/26/2011 10:03 AM

Learn how to convert date and time to text in Android.

By Goran Siric on 9/22/2011 1:46 PM

If you are programming for Android then you know how hard is to create and manage all that icons for different screen sizes and resoultions. Here is GIMP script for creating all that icons at once. 

Search Blog

If you found this useful,
you can buy me a coffe :)
By me a coffe through PayPal :)

Featured articles

Android "DataEntry ListView" Design Pattern

Have you realized the importance of ListView control in developing android applications ?

GIMP script for creating Android icons at once

Script for creating Android icons for different screen resolutions at once. Icons can be saved using standard Android icons naming conventions and saved in appropriate folders.

Creating Android button with image and text using relative layout

Source code with examples how to use relative layout to create nice buttons with text and images in Android

Android application and the Internet

Tutorial about connecting to the web pages on the Internet from Android application, using both POST and GET web requests.

Recent Entries

Comments about Parking SMS Scheduler
Comments about cities and parking zones
Android "DataEntry ListView" Design Pattern
Android application and the Internet
Keep my DNN site alive
Android default icons

Recent Comments

Re: GIMP script for creating Android icons at once
Wow, thanks! I tried to hack your original script to add it in there but I don't know anything about script-fu and it ended up horribly.
Just a couple of notes: the ouya name and location matters so I changed it to:

(set! newName (string-append folder "/drawable-xhdpi/ouya_icon.png"))
(set! rawName "ouya_icon.png")
and this for banner (the name here is just a personal preference)
(set! newName (string-append folder "/drawable-xhdpi/banner.png"))
(set! rawName "banner.png")
Thanks again!
Re: GIMP script for creating Android icons at once
Dear Wildy,ouya and banner icons are completly different icons then standard android icons, and many of standard options don't apply to them, so I decided to write new script for you:

Installation procedure is the same as for the first script.
Re: GIMP script for creating Android icons at once
ouya_icon and banner both are 1.777777777777778 aspect ratio. I usually start with a 720p or 1080p bitmap maybe it would be possible to check for the correct aspect ratio before offering that option? Or before converting the bitmaps?
Thanks for the other fix though, it'll also save me a bit of manual renaming.
Re: GIMP script for creating Android icons at once
Dear Wildy,
ouya_icon and android TV banner are not icons with equeal hight and width, so it will be hard to decide which part of the image to use for creating this icons. Maybe you can use custom MDPi widht/height for this purpose?

Leaving out _ in the nameprefix when the name itself is empty can be done.
Re: GIMP script for creating Android icons at once
Would it also be possible to leave out the _ in the namepreffix if the name itself is empty? Thanks.