You can enable support for certain forward version features via the
android.support namespace. In order to accomplish this you need to start the Android SDK Manager and make sure that under the Extras heading you select and install the Android Support package.
Once done you go into the directory
extras/android/support/v4 and copy the
android-support-v4.jar to your own project’s
libs directory. Next go within IntelliJ IDEA to File » Project Structure and under Project Settings go to Modules, make sure your application is selected in the middle pane, then on the right side select the Dependencies tab. In the window below click the plus-icon and select Jars or directories. From the resulting window browse to your
libs directory and select the
android-support-v4.jar and press OK to close the window and add the jar-file to the dependencies of the project. Since you are now using certain constants from a newer version of Android the Module SDK needs to be changed to Android 4.0.3 Platform as well. Press Apply and close the Project Settings by pressing the OK button.
What I did to get the Galaxy S2 skin to work with the Android Virtual Device (AVD) was:
- download the skin from the Samsung Developer website, it’s under the Add-on SDKs,
- extract to a Galaxy_S2 directory,
- put the entire directory in the
[Android-SDK directory]/platforms/android-10/skins directory,
- edit the manifest.ini and change
- restart AVD Manager,
- under skin in the device configuration you should see Galaxy_S2 in the dropdown.