android - define the targetSdkVersion depending on the device -


I have defined my manifest android: targetSdkVersion = "15" and I want to test With a device with 17 equal to API level

minSdkVersion is set to 15.

  & lt; Use-SDK Android: minSdkVersion = "15" Android: targetSdkVersion = "15" />   

I know that this will work because minSdkVersion is set to a lesser version of the device but my question is, should I change the target whenever I change the device?

>

You should not change the target version with every device, but with every new API level that is going on.

As you already posted as a webpage:

As Android develops with each new version, some behaviors and even That change can also change. However, if the API level of the platform is higher than the version declared by your SDKversion target, then the system can enable compatibility behavior to ensure that your app continues to work as you expect.

And some lines are ahead:

To maintain your application with each Android release, this feature to match you to the latest API level Should increase the value of it, then test your application well on the respective platform. Edition.

Every new API includes new features, but will also discard old people; Can remove anything completely! Therefore, devices running with high API levels may not support the same feature that you used in your app, to enable compatibility mode to enable them to run the app again once again. Does. In essence, No, your targetSdkVersion goes high api as high as it should be. Definitely, as much as possible, minSdkVersion should try to avoid using maxSdkVersion , as it will reduce the dynamics of your app over time . Even if your minSdkVersion is 1 and targetSdkVersion is 19, then the new device will not have to enable compatibility mode to run the app.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -