In my application, I want to configure all versions of Android> = 8 (Push-Notification is required), but I find it difficult to understand the correct combination of API / dependencies that I need for my project setup.
The project will require the Google API for location-based services, and I need / need to use ActionBarSherlock to support ActionBar.
Is this setting correct?
AndroidManifest.xml:
(1)
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" /> <application android:theme="@style/Theme.Sherlock.Light" > ...
Libs:
(2) I added android-support-v4.jar
Project properties:
(3) Install Google API 16
ActionBarSherlock:
(4) I watched the video in the ActionBar-FAQ to configure ABS as a library project, and I installed it in Android level 16 in its project fault and added android-support-v4.jar to my lib folder.
I know this is one of the main questions, but I'm not sure I chose the right setting. I am particularly interested in whether (3) is correct, or if I have to set the general API level to 8?
Update 1 . I also have a problem understanding the support.jar mechanisms. If I set the max build goal, how should the system make sure that high-level functionality (like fragments) works in lower APIs (like 8). Is this done automatically, or do I need to manually encode support packages? Update 2. Regarding support.jar , I will need to know what functions I use and I will have to encode the support file. If I refuse and use too complex a function, a ClassCastException at lower levels of the API will be thrown ...?
Any help appreciated. Also: I'm a beginner, so answers with some background information would be much appreciated :)
Thanks!
source share