Author: Created: 9/15/2011 9:24 AM RssIcon
Blog about programming for Android platform and about DotNetNuke CMS
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/13/2011 10:04 AM

Here you can download simple program I made for keeping my DNN site alive. 


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/27/2011 11:01 AM

Today I tried to add Recent blog entries blog module part to my Blog page and have got following error:

A critical error has occurred. An unexpected error has occurred

See how I solved this error.

By Goran Siric on 9/26/2011 12:21 PM

Here you will find story about problems I had while trying to enable formatting of code blocks in DotNetNuke 6 

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. 

By Goran Siric on 9/20/2011 2:47 PM

See how to integrate Google AdSense code with your DotNetNuke 6 site.

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
It didn't work for me. I always get this error message

Error while executing script-fu-save-android-icons:

Error: ( : 53244862) Procedure execution of file-png-save2 failed: Could not open 'C:\Users\dgp\Desktop/drawable-ldpi/fb.png' for writing: No such file or directory
Re: Creating Android button with image and text using relative layout
Maybe a noob question but how can center the text and images within the button?
Re: GIMP script for creating Android icons at once
Thanks for this script, but it doesn't works on windows as it use slash instead of antislash for paths
Re: Creating Android button with image and text using relative layout
Never mind, I can't post suffice it to say, you are doing it the hard way.
Re: Creating Android button with image and text using relative layout
Why don't you just formulate your XML like this



android:layout_width="wrap_content"
android:src="@drawable/icon"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
ImageView>

TextView>

TextView>


include like this


include>

and find it like this

RelativeLayoutButton button1 = (RelativeLayoutButton)this.findViewById(R.id.button1);