Is there any impact of lowest (minimum sdk) and highest (target sdk) levels in the android project. Is these things may effect the project reliability and efficiency.
There is no impact, If you target SDk level 8 then your app will target 99.8 % of the mobiles make sure you use V7 support jar to make you development process easier. Since no new popular mobiles have 23 yet you can target it to be ready for the future but Make sure you dont add unwanted permissions as it will make you life difficult also ensure you handle the scenario if permission is declied .
Yes, the targets are there to filter out what your app caters to which android versions. Different SDK levels has different set of new/updated APIs and depreciated APs.
The lower u go , the more devices you are able to target.
More info: https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels
The impact is only in what features you are able to use. For example API 8 doesn't support animations that were introduced in Honeycomb, API 22 doesn't support the optional permissions introduced in Marshmallow etc.
It is still possible to use these features in your app using the TargetApi annotation, but you have to be sure that they will not be run on older devices, usually by using a statement such as this:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
{
// JellyBean specific code goes here
}
else
{
// Pre-JellyBean code goes here
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.