Need information on how minSDKversion , maxSDKVersion and TargetSDKversion will impact android application's CompileTime , runtime behavior and also how above above flags impact app's installation.
I'm writing one application targeting android API level 24 and lower version. since Runtimepermission feature was introduced in API level 23(Android M).
What I want to achieve is, If application is running on Device whose API level is more than 23 then application has to make use of Runtime Permission feature, if app is running on device API level 22 or less, than application should not make use new Runtime Permission.
to achieve above behavior what should be the value for minSDKversion, targetSDKversion and maxSDKversion?
apart from the minSDKversion, targetSDKversion and maxSDKversion values, do i need to explicitly check the API level in java code while requesting the permission?