Archive

Archive for the ‘UI Handling’ Category

Developing Android Home Screen Widgets

May 24th, 2011 ddewaele 19 comments
In this article, I’ll be showing you how to create a widget for the Android homescreen. Widgets can be useful to provide condensed information, without necessarily having to open your application. In addition to showing information, a widget can also be used to trigger certain actions related to your application. Instead of forcing the user to open up your application and navigating to a certain screen to perform an action, a widget can provide the user with a quick shortcut to that action. You can also dynamically change the layout of your widget (ex: when the user presses a button, the button can be highlighted, or a piece of text can altered). This article is accompanied by a sample android application that includes the widgets we’ll be discussing here.

Continue reading “Developing Android Home Screen Widgets” »

Bookmark and Share

Handling progress dialogs and orientation changes

November 14th, 2010 ddewaele 16 comments
ProgressDialogs in Android are easy. At least, that was my initial thought. As long as you don’t change the screen orientation that is. Once you start moving your phone around after – or worse, during – an active progress dialog, you’ll soon find that out that your application isn’t behaving the way it should.
Luckily for us, there are several ways to tackle this.I’ve created a sample application, available on GitHub outlining the problem, and some solutions of dealing with it gracefully. The repository is located here.

Continue reading “Handling progress dialogs and orientation changes” »

Bookmark and Share