Install and setup Compatibility Package - Blog Android

Sunday, 18 December 2011

Install and setup Compatibility Package


Update@2012-06-22

It seem no longer work!

Refer to another post: to know how to add Android Support Package.




Compatibility Package is a static library that exposes the same Fragments API from Android 3.0, so that applications compatible with Android 1.6 or later can use fragments to create tablet-compatible user interfaces.

Before you can apply Compatibility Package on your project, you have to prepare something first:

- First of all, make sure you have installed Compatibility Package:
In Eclipse, click Window -> Android SDK Manager, scroll down to Extras, install Android Compatibility package.
install Android Compatibility package

- Include Compatibility Package in your Build Path:
Right click on your project in Package Explorer, -> Properties.
Select Java Build Path tab on the left.
Click Add External JARS button on the right.
Browse to select your instaled android-support-v4.jar, and click OK.
Add android-support-v4.jar

Now you should have android-support-v4.jar in your Java Build Path, click OK.
Java Build Path


updated@2011-12-27:

It's called Android Support Package now, in /android-sdks/extras/android/support/v4/android-support-v4.jar
Android Support Package


next:
- Example of using Compatibility Package, implement Fragment on pre-Android 3.0 devices

Borneo08

About Borneo08

Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.

Subscribe to this Blog via Email :

More links

Related Posts Plugin for WordPress, Blogger...