{"id":7970,"date":"2020-03-09T14:47:18","date_gmt":"2020-03-09T14:47:18","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=7970"},"modified":"2020-03-09T14:47:18","modified_gmt":"2020-03-09T14:47:18","slug":"sideloading-an-android-application-from-a-website","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/sideloading-an-android-application-from-a-website\/","title":{"rendered":"Sideloading an Android application from a website"},"content":{"rendered":"<p>You might want to supply your Android application outside of the Play store. This might be for testing or simply because you don&#8217;t want or need your application to go through the Play store (i.e. a bespoke application for a company).<\/p>\n<p>Assuming you&#8217;ve got your APK file you can simply drop in onto a web site and link to it (or supply the location). For example<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;title&gt;My Android Application&lt;\/title&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n      &lt;p&gt;\r\n      &lt;h2&gt;Install My Android application by clicking on \r\nthis &lt;a href=&quot;com.puridparrot.myapp.apk&quot;&gt;link&lt;\/a&gt;\r\n      &lt;\/h2&gt;\r\n    &lt;\/p&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>Simple enough &#8211; we might need to set the mime type, for example here&#8217;s the web.config for IIS<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;configuration&gt;\r\n  &lt;system.webServer&gt;\r\n    &lt;staticContent&gt;\r\n      &lt;mimeMap \r\n         fileExtension=&quot;.apk&quot; \r\n         mimeType=&quot;application\/vnd.android.package-archive&quot; \/&gt;\r\n    &lt;\/staticContent&gt;\r\n  &lt;\/system.webServer&gt;\r\n&lt;\/configuration&gt;\r\n<\/pre>\n<p>Now when you click this link from your device it&#8217;ll download the file and install it, you will need to set &#8220;Unknown sources&#8221; on to allow this to happen.<\/p>\n<p>The downsides of this approach are that you obviously don&#8217;t get any notifications for updates to an application, also you&#8217;ll get a couple of security prompts to remind the user that this app. may not be from a trusted source.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You might want to supply your Android application outside of the Play store. This might be for testing or simply because you don&#8217;t want or need your application to go through the Play store (i.e. a bespoke application for a company). Assuming you&#8217;ve got your APK file you can simply drop in onto a web [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[120],"tags":[],"class_list":["post-7970","post","type-post","status-publish","format-standard","hentry","category-android"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=7970"}],"version-history":[{"count":2,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7970\/revisions"}],"predecessor-version":[{"id":7987,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7970\/revisions\/7987"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=7970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=7970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=7970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}