I made two versions of the theme for my app.one for the android version below 4 and the second for the android version is greater than 4.
Placed them in res/values and res/values-v14.
Do I need to enumerate res/values-v15, res/values-v16 or res/values-v14-v15 ?
Noope, res/vales-v14 applies to all version equal to or greater than 14, as per Android's documentation (http://developer.android.com/guide/topics/resources/providing-resources.html):
The API level supported by the device. For example, v1 for API level 1
(devices with Android 1.0 or higher) and v4 for API level 4 (devices
with Android 1.6 or higher).
Related
In this official Android source page (https://source.android.com/setup/start/build-numbers) that contains the code names, API levels and versions numbers some of the versions contain the character x in its version number for example:
Froyo: the version number is 2.2.x
Honeycomb: the version number is 3.2.x
So what does x character represents in the version numbers?
I believe that the "x" stands for all the versions for the specified version. For example, 2.2.x stands for 2.2.1, 2.2.2, and 2.2.3.
Wikipedia page for the different Android versions.
It is the API coverage.
As an example:
Honeycomb Versions start from 3.0 to 3.2.6.
3.0 API 11
3.1 API 12, NDK6
3.2.x means that all versions starts with 3.2 are API 13. Also x is the patch level of API 13 for honeycomb.
In my opinion,
X is mean all of something. Like 3.0.x mean all of 3.0.1,3.0.2,etc. And new version update of android studio, we got. androidX. I guess its mean, They put all feature of pre version in one.
The X in the Version Number suggests the Patch Update version. The First number stands for the Android Version Start (i.e 3 for HoneyComb and moving forward), the Second Number stands for the Sub-Android Version of the Base Version(i.e. 3.1) and the X then stands for the Patch Update Number(3.1.1).
The min level that I can set in unity is API level 16, however, I need to run a game in an old tablet. Is there a way to do it?. If not, which version of unity supports it?
Unity 5.6 dropped support for Android 4.0.x or lower. It only supports Android 4.1 (API Level 16) or higher. See https://unity3d.com/unity/system-requirements and https://unity3d.com/unity/whats-new/unity-5.6.0
Unity 5.5 is the last one to support Android 2.3.1 (API Level 9).
How do i name a layout folder which for only between android 4.0 to 4.3?
I know how to do it for one version but not sure in between
The API level supported by the device. For example, v1 for API level 1
(devices with Android 1.0 or higher) and v4 for API level 4 (devices
with Android 1.6 or higher). See the Android API levels document for
more information about these values.
So, you need just create directory for Android 4.0 (v14), and other for API 4.4 (v19). All you v14 resources will be used for v14-v18.
I need to make an app for an android 2.3.6. Which SDK Should I use? SDK Manager only shows 2.3.3 API 10 as the highest one.
The Android API level list says that the highest API level you can use for 2.3.6 is API level 10. The next higher level 11 requires at least Android 3.0.
use 2.3.6 API 10 which full fills your requirement
If you use 2.2 or 2.1 it also help you to make it compatible for lower versions
While creating an android project if i say that the Build Target of my Android porject is 2.2 (API Level is picked as 8) and in the text box for Min SDK version. If i put some value apart from the API level (smaller or greater than 8) of the build target then what happens?
Does the build happen according to the build target specified, but the application developed is compatible with the smaller android versions (if i specify API level < 8 ). Or the application developed is only compatible for the higher android version (if i specify API level > 8 ).
Can anyone please explain?
There is a similiar question already posted with an excellent answer:
Read the post by Steve H.
Android Min SDK Version vs. Target SDK Version
Say you set the manifest API level to 4, then the app will work on any api 4 device provided. BUT the project will be built to API level 8 so if you have any post-level 4 api methods in your code then the app will crash.
You can only put min SDK version less than your target version,it tell that your application can support to that min SDK version,but you should confirm that your application should run under min SDK version supported devices since the Build target versions may use new APIs which are available for that specific version and those APIs may not available in min SDK versions
ok.. if you have developed an application using particular sdk for instance Android 2.2 and your minSDKversion is < 8 then application is falsely declaring to android system that It can be installed in Android device having sdk version less than Android 2.2. In that case if application happens to install on Android 2.1 and if you re using API that are exculsiviely avaialbe in Android 2.2 platform and not on Android 2.1 then your application will crash on the device. if your minsdkversion > 8 then application won't get installed on the device having Android sdk 2.2 or lower version