I am writing specifically for an AVD set to API level 14, so I set:
Paths Configuration:
javac.exe to: C:\Program Files (x86)\Java\jdk1.7.0_07\bin\javac.exe
android.jar to: C:\Program Files (x86)\Android\android-sdk\platforms\android-14\android.jar
Manafest had the line:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
(The AVD I used to test was running API Level 14.)
I then copied in and ran the extremely simple example given in the online documentation for HTTP (I included the HTTP version 1.21 library). Unfortunatley it died on the line:
Response.GetString("UTF8")
Only setting targetSdkVersion to 9 or less made the example work. (I understand I should use Response.GetAsynchronously instead to get this to work.)
****
So my question is: Should I always use 9 or less for SdkVersion even though my target phone can run 14? And if so, do I lose the functionality of updates from 10 through 14?
****
Paths Configuration:
javac.exe to: C:\Program Files (x86)\Java\jdk1.7.0_07\bin\javac.exe
android.jar to: C:\Program Files (x86)\Android\android-sdk\platforms\android-14\android.jar
Manafest had the line:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
(The AVD I used to test was running API Level 14.)
I then copied in and ran the extremely simple example given in the online documentation for HTTP (I included the HTTP version 1.21 library). Unfortunatley it died on the line:
Response.GetString("UTF8")
Only setting targetSdkVersion to 9 or less made the example work. (I understand I should use Response.GetAsynchronously instead to get this to work.)
****
So my question is: Should I always use 9 or less for SdkVersion even though my target phone can run 14? And if so, do I lose the functionality of updates from 10 through 14?
****
Last edited: