Last night, Android SDK 1.6 was released!

As a good developer, your first official act should be to check your current applications against the new Android version.
Concerning my apps, Metricdroid is good to go for Android 1.6, but my Rundroid+ Widget unfortunately isn’t.

My first interest was the known issue in 1.5 that the AppWidgetProvider won’t call the onDelete()-Method so you had to come up with Jeff Sharkeys workaround code for the onReceive()-Method (check my Widget-Tutorial for more information). Well, as far as I can tell (tested with my widget), this bug belongs to the past.

Unfortunately, it seems that the update periode (the one you configure in your xml-metadata with android:updatePeriodMillis) is not called any more. I tested my widget with a Toast-Message that should pop up every 5000 millis and was placed in the onUpdate()-Method. Same code worked fine on 1.5.

Well, using the update mechanism with updatePeriodMillis isn’t a convenient way at all because you don’t have the chance to reconfigured it, but still: Shouldn’t this still be working?
I planned to change my code so the user can configure the update periode, but now I’m a little bit under pressure to get this up and running. The first android 1.6 phones are announced for the beginning of October.

I’ll keep you updated on my research with 1.6.

3 Responses to “Android SDK 1.6 – my first and small review”

Fredro

September 18th, 2009 - 13:54

Hi, will you update the widget guide? And maybe add some more to it about buttons. I’m trying myself to get it to work.

Nice app for the Nike+ :)

admin

September 18th, 2009 - 14:05

Hi Fredro,

thx for your feedback. My first intent is to get the Nike+ app to a new Version but I have to change the architecture of it, so there’s some more refactoring required.
For the next step of the tutorial I was thinking about adding configuration to the widget but I might skip that an try to come up with the buttons first ’cause you’re already the 2nd one requesting that. I havent’t done more buttons yet so please give me some tie to figure it out.
Norbert

Peter. Chen

September 26th, 2009 - 04:26

Hi Fredro,
I’m a new developer on Andoroid widget. Yesterday I found a PDF file about How to: Android ‘Hello Widget’, now i can write it by myself, thanks

Leave a Reply

Let the other Follow you at twitter by clicking here.