Well.. have been almost a year since the last post. What had change? basically Android and the mobile OS market. Nowadays we have like a zillion android gadgets in the market (phones, STB, the “nook“)… During the last year the biggest change I have seen in Android was the launch of “Droid” the Motorolla’s Android v.2.1 phone sell by Verizon. Tablets are also an evolution derived from the mobile OS market, being the new Apple’s iPad the newest kid in the block.
My last post (from last year) was about the “that’s 70s clock” application. About 800 to 900 download the application and as today I believe some 200 are still using it. The silly thing about those 200 people using the application is that I can not count myself as one of the 200 hundred users. I stop developing the clock long time ago, basically when Android 1.6 was released and Android’s Widget started showing up with it.
My first attempt using widgets was to develop a widget for the 70’s clock, but that didn’t work. Then I wanted to create some kind of rss news reader widget. RSS is a xml feed that contains information, can be news or anything you want to share (like your twitter posts, or your published pictures in Picasa). My idea was to create a news widget with news from spanish speaking countries.
After dealing for a while with the XML parsers (there are two parsers you can use in Java… SAX and DOM), I did start dealing with the widgets itself. The trick behind the widget more than drawing it on the screen is updating it. Basically you create an alarm in android that triggers a service that will refresh the widget (and modify its content)… it sounds easier than what it actually is though.
The good thing about RSS is that you can find thousands of newss sources in the internet, and as they all follow the same format, you can create as many widgets as RSS sources you have. As I was thinking in spanish news what did was in one side to create a source for a particular country’s news. My first source was a portal for news from my country Venezuela. The portal is set at http://venenews.androidgeek.com. I did use Wordpress to publish the news, and a wordpress plugin that sindicates RSS (meaning it reads an RSS source and publish its content as a wordpress post). Then I use the RSS feed from wordpress to feed my widget (in this way I can generate one feed with news from several sources).
I did the same for news coming from Mexico. I did create a news portal (http://noticiasmexico.androidgeek.com) and use it to feed a widget.
Having two news sources I did create two Widgets, one aim to people from Mexico with news from their country, and the other aim to people from Venezuela with news from Venezuela… I named the widget with news from Venezuela “Venenews”, and the one from Mexico I call it “Noticias Mexico”. .. both widgets can be found in the Android Market.
Once I have the chance, I will write about how I wrote the widget and actually talk about some problems I’m still having with them… c’ya then

