Android 2.2: A Developer’s Perspective

So, Android 2.2 is upon us. While there is no hardware running it (yet), we do have the new SDK, NDK, development tools, and all sorts of good stuff. So, the question is, what’s this all mean?

In many ways, Android developers with existing apps will not have much, if anything, to do to get their apps to work on Android 2.2. The only true “change” I have seen to the core is that fill_parent is now known as match_parent, though the older value will still be supported in a deprecated fashion. I see nothing that absolutely requires serious app overhauls, the way that multiple screen sizes or the revamped contacts API did. You might want to switch to the newer managed dialog methods, for example, but (AFAICT) your app will not immediately break by using the older methods.

Rather, most of the programming improvements are all new things you can take advantage of, but are not really forced upon you. If you want to advise Android regarding your app’s interest in being moved to the SD card, there’s a manifest entry to add. If you want to take advantage of the Cloud-to-Device Messaging API, there’s an add-on for that (in limited access beta for now). Optional APIs were added for application data backup, custom speech recognizers, camera zoom levels, device policy management, and so on — all of which you can use or ignore at your discretion.

Some of the benefits will come outside the realm of programming. If you do not have your own top-level exception handler tied to Flurry, DroidDrop, or similar services, you can leverage the crash report capability built into the Android Market. Update-all and auto-update of apps on the Market will accelerate deployment of newer versions of your apps. And everybody will relish the speed you get from the new JIT-enabled Dalvik VM and the V8 Javascript engine.

So, on the surface, it appears that Android 2.2 is goodness with few downsides. Of course, with the SDK only being available for ~36 hours, we may yet run into major regressions or other calamities. But Froyo went how I would expect Gingerbread and future releases to go — the core remains largely unchanged, new APIs are added you can optionally leverage, and lots of stuff gets added around and outside of app development.

About author

AndroidGuys
AndroidGuys 4626 posts

Founded on November 5, 2007, we've enjoyed bringing you the latest in Android news and rumors. Updated daily, we strive to deliver reviews, opinions, and updates on all things related to Android.

You might also like

News and Rumors

Google Releases New Android Tools for Google Apps Admins

Google today announced on their Enterprise blog that they have added 3 more Android based tools for administrators of companies who make use of Google’s enterprise suite of web apps.¬†

News and Rumors

Blackberry $150 Million Dollar Fund

So, what has gotten my attention this week? Google, Sprint, Clearwire deal? No, it’s actually this $150 million Blackberry Fund thing I have been reading about just recently on Venturebeat.

News and Rumors

Captain America: The Winter Soldier now available

Super hero fans unite! Captain America: The Winter Soldier has brought the tactical skills of S.H.I.E.L.D. to Android. This is the official game for the new movie starring Chris Evans and

4 Comments

  1. Julius
    May 21, 21:45 Reply

    Perhaps a little off topic – do you tend to build a version of your app for each version of the OS? Or a one size fits all?

  2. Acer_Liquid
    May 21, 21:57 Reply

    Can you comment on how easy or hard it is for manufacturers to release updates to 2.2 compared to what they had to do for the 1.6 -> 2.1 upgrade? Rumor is that it should be easier this time around.

  3. myLock
    May 22, 15:52 Reply

    Nope, 2.2 appears to have broken my app. The change doesn't appear to be documented, but I can no longer use a translucent or transparent window in conjunction with FLAG_DISMISS_KEYGUARD to clear/replace the lockscreen. Prior to 2.2 only FLAG_SHOW_WHEN_LOCKED was getting blocked while translucent, I assumed that was done since its allowed to be used on top of even the secure pattern lockscreen

Leave a Reply