Software engineering tips and tricks for Java, Android, Rails, iOS, and whatever else I decide to play with. I've recently started playing with some client side technology such as Javascript, jQuery, and HTML 5 so expect some posts on these topics.
Follow me on twitter@halphrican
Saturday, March 05, 2011
Installing Android's Compatibility Library
As I'm sure you all know, Google released a compatibility library for Android so pre-honeycomb applications can support the new Fragments API. If you have a pre-Honeycomb application and want to take advantage of Fragments ( and a few other cool classes ), you can download the compatibility library using the Eclipse ADT plugin. Specifically, using the Eclipse ADT plugin, you must download Android Compatibility Package, revision 1. After you download the library you need to include it in your project. The easiest way to do this is to copy it to your "lib" directory, assuming you have one, and then adjust your project's build path. The file you'll need to copy is /android-compatibility/v4/android-support-v4.jar. Copy this file to your Eclipse project, adjust your build path, and you'll be good to go. More to come later.
No comments:
Post a Comment