Posts Tagged ‘Android’

Exploring the world of Android :: Part 3

October 8th, 2009 by Tom van Zummeren
(http://blog.jteam.nl/2009/10/08/exploring-the-world-of-android-part-3/)

In my travels through the world of Android I faced a lot of challenges. Brave as I am, *cough* I conquered each one of them. A few of the challenges include saving activity state, asynchronous tasks, pagination, error handling, context/option menu’s and even drawing custom application/tab icons in Photoshop! Some challenges I already shared with you guys, but there is one challenge in particular I would like to elaborate on this time.

The app I am currently building is getting larger every day, and so is the main Activity class! Because my main activity contains a TabHost with a bunch of tabs, it also contains references to all individual view components contained in those tabs. All kinds of listeners are registered on those components so the activity contains some inner and anonymous classes as well. So you could say that this activity now has way too much responsibility! What I was looking for, is a way to separate the main activity into multiple parts, each with its own clear responsibility.

As it turns out, you can create custom components for a single piece of functionality within an Activity. Exactly what I was looking for!
Read the rest of this entry »

Exploring the world of Android :: Part 2

September 17th, 2009 by Tom van Zummeren
(http://blog.jteam.nl/2009/09/17/exploring-the-world-of-android-part-2/)

And I’m back! Reporting live on the glorious adventures in the exciting world of Android. This blog post is the second one in the Android series. This time with code samples! Yeah!

In my first blog post about Android I talked about setting up a project using Android. This time I want to discuss a more “advanced” topic: ListView performance. A ListView is a view component which allows you to display and scroll through a list of items. It can display simple text in each row, but is also able to display a more complicated structure. In the latter case you will need to make sure your ListView still performs well (read: renders fast and scrolls smoothly). I am going to provide solutions to a few different performance problems when using a ListView
Read the rest of this entry »

Exploring the world of Android :: Part 1

September 8th, 2009 by Tom van Zummeren
(http://blog.jteam.nl/2009/09/08/exploring-the-world-of-android-part-1/)

For a short while now, I am developing for the Android platform, which is a mobile phone operating system developed by Google. The language to use is Java, so at least I didn’t have to learn an entirely different new language and I can use the tools I already know and love. I would like to tell you about my ‘adventures’ as I explore the world of Android :)

When I first started studying the Dev Guide I soon discovered that the recommended IDE for developing Android applications is Eclipse. Which was a bit disappointing because I don’t like Eclipse that much. But fortunately the kind folks of Google left room for other IDE’s to develop with. They explain that when you use another IDE you will have to use all kind of command line tools instead, which they provide. Those command line tools allow you to compile your code for Android, run your application in a phone emulator, connect a debugger to your emulator, view application logs and stuff like that. But what they didn’t mention, is that if you use Intellij IDEA (which happens to be my favorite IDE) it also provides good support for Android! This makes the use of most provided command line tools superfluous.
Read the rest of this entry »

Cool iPhone / Android Wordpress plugin

September 8th, 2009 by Bram Smeets
(http://blog.jteam.nl/2009/09/08/cool-iphone-android-wordpress-plugin/)

We just installed a nice Wordpress plugin that displays our blog post in a much more mobile-friendly manner (both visually and in terms of bandwidth). Check it out on your iPhone or Android phone or check out the screenshot if you don’t have one. Kudos to Jettro for telling me about this plugin.

You can install the plugin directly from Wordpress by searching for: WPtouch iPhone Theme
Read the rest of this entry »