{"id":4712,"date":"2014-03-30T14:50:41","date_gmt":"2014-03-30T14:50:41","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/updating-apk-only-for-specific-version-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:50:41","modified_gmt":"2014-03-30T14:50:41","slug":"updating-apk-only-for-specific-version-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/updating-apk-only-for-specific-version-collection-of-common-programming-errors\/","title":{"rendered":"Updating apk only for specific version-Collection of common programming errors"},"content":{"rendered":"<p>Set:<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>In your Android Manifest<\/p>\n<p><strong>Edit:<\/strong><br \/>\nYes, that would need to have a different build. If you want t have only one apk and have certain features to only appear in Android Api 14+.<\/p>\n<p>You can check at runtime like this (requires Api 4):<\/p>\n<pre><code>if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.ICE_CREAM_SANDWICH){\n<\/code><\/pre>\n<p>If you are supporting Api below 4. Use this instead:<\/p>\n<pre><code>if(Integer.parseInt(android.os.Build.VERSION.SDK)&gt;=14){\n<\/code><\/pre>\n<p>(<strong>Note:<\/strong> this is deprecated)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Set: In your Android Manifest Edit: Yes, that would need to have a different build. If you want t have only one apk and have certain features to only appear in Android Api 14+. You can check at runtime like this (requires Api 4): if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.ICE_CREAM_SANDWICH){ If you are supporting Api below 4. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4712","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4712"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4712\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}