I have a old post "
Install and setup Compatibility Package" describe how to include Android Support Package in Java Build Path. I try again it recently, it seem that the method no longer work! When work with android.support.v4.app.FragmentActivity,
java.lang.ClassNotFoundException will be thrown.
It can be solved by Add Support Library in Eclipse menu.
- New a Android project target Android 3.0 (API Level 11).
- Modify AndroidManifest.xml to specify minSdkVersion and targetSdkVersion:
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="11"/>- Add Android Support Library.
Right click on the project in Eclipse, select Android Tools, Add Support Library...
Accept to install Android Support.
- Test it
Modify your activity extends FragmentActivity instead Activity, and import android.support.v4.app.FragmentActivity.
Now you can run it without error.
Related Posts :
Android Accessory Development Kit (ADK) for 2012The Android Accessory Development Kit (ADK) for 2012 is the latest reference implementation of an Android Open Accessory device, d… Read More...
Beginning Android Web Apps Development: Develop for Android using HTML5, CSS3, and JavaScriptWith Beginning Android Web Apps Development, you'll learn how to apply HTML5, CSS3, JavaScript, Ajax and other Web standards for u… Read More...
Android Apps with EclipseEclipse is the most adopted integrated development environment (IDE) for Java programmers. And, now, Eclipse seems to be the preferred … Read More...
Enable Hardware Acceleration using Java codeTo enable Hardware Acceleration programmatically using Java code, call the following code with FLAG_HARDWARE_ACCELERATED:getWindow().setFlag… Read More...
Enable Hardware Acceleration for Android 3.0 or later devicesAndroid 3.0 (Honeycomb) introduced Hardware Acceleration. To enable Hardware Acceleration for your app, edit AndroidManifest.xml to insert t… Read More...
0 Response to "Add Android Support Package"
Post a Comment