Archive for May, 2008

iPhone Getting GPS & SDK Getting Maps API…?

Since I dissed the iPhone SDK earlier this month (iPhone SDK lacks mapping function), I wanted to pass on this update. Looks like a GPS-enabled iPhone is in the works for Apple’s upcoming World Wide Dev Conference. Even if the announcement doesn’t come then, looks like it will come soon according to EnGadget:

Second-gen iPhone: 3G, GPS, only slightly thicker

Click to see new GPS-iPhone at EndGadget

This is great news for mobile map-based application developers but don’t count on the API being as slick and open as Android’s. Given Apple’s approach so far, they’ll still withhold the vital functionality to get your app really humming.

Why do I say that?

Well for example, Apple’s SDK doesn’t allow applications to run in the background. That means death to any Pocket Journey app that would run on an iPhone as the audio/video would be killed along with your application as soon as someone called. Apple says this is for security reasons, but we know it’s due to Apple’s “control freakish” corporate nature. Happily for us, Android solved this challenge through their Service API.

Seems like Apple wants to step back to the dark ages of the Palm OS which can only handle single-threaded tasks as well

Android Tutorial #4.2: Passing custom attributes via XML resource files

In tutorial #4.1, I mentioned that we passed custom attributes for the text and image variables from the XML resource file to our custom class. This is a critical skill for performing true object-oriented programming and how to do it wasn’t obvious from Google’s Android API Demos.

Luckily I was pointed to the solution myself by an experienced Android programmer in Guatemala by the username of cadlg (thanks again!). If you want to see the official Google Android example though, look at Android’s APIDemos’ custom LabelView example.

So here we go. We’ll use the same code as Tutorial 4.1 to keep this simple.

Continue reading ‘Android Tutorial #4.2: Passing custom attributes via XML resource files’


a