Google Android 1.5 Offers Backward Compatibility For Applications

Google Android operating system is pushing out backward compatibility.  The game is early and with the iPhone with a commanding lead don’t count out the GPhone and Android.  Android is not only about the iPhone but settop boxes.  Many sources close to SiliconAngle Labs say that the settop work will be just as compelling – handheld and living room applications experience – a developers dream.

Back to our current dream – Gphone and Android.  Google taking all the right steps with developers as they try to change the game on the handheld side.  They continue to drive open source and openness and here we have Android 1.5

Android 1.5 introduced a number of new features that application developers can take advantage of, like virtual input devices and speech recognition. As a developer, you need to be aware of backward compatibility issues on older devices—do you want to allow your application to run on all devices, or just those running newer software? In some cases it will be useful to employ the newer APIs on devices that support them, while continuing to support older devices.

Here is the link for developers WARNING: CODE DISPLAYED not for the non-techie. We’ll have our “Angle” on this later once I review the code and check with our guys working on the Android stuff.

class WrapNewClass {
private NewClass mInstance;

/* class initialization fails when this throws an exception */
static {
try {
Class.forName(“NewClass”);
} catch (Exception ex) {
throw new RuntimeException(ex);
}
}

/* calling here forces class initialization */
public static void checkAvailable() {}

public static void setGlobalDiv(int div) {
NewClass.setGlobalDiv(div);
}

public WrapNewClass(int mult) {
mInstance = new NewClass(mult);
}

public int doStuff(int val) {
return mInstance.doStuff(val);
}
}

Expect more from Google at their Google I/O event next month. SiliconAngle will be there.

About John Furrier

Founder and CEO of SiliconAngle.com.
Post comment as twitter logo facebook logo
Sort: Newest | Oldest