
Perhaps you have limited disk space and do not want to "waste" space by having two instances of the Android images installed for both Android Studio and Visual Studio. This article will hopefully make this task a lot easier. Yet, actually getting it to be active inside the Emulator is illusive. Checks for updates, but actual update has to be downloaded from the Play Store.Have you been pulling your hair out because you can't get Google Play to work on the Android Emulator? Have you been asking yourself, "shouldn't it be easier to get such as simple thing to work so you can get back to writing code?" You see the options (for Google Play Store) in the GUI (at least on the Visual Studio side) and even some references to it in the AVD Manager. Older library, but instructions in English and also provides a server script.

Auto Updater This project allows to automatically update a running APK application using a private update server (see apk-updater) instead of Google Play updater.All it requires to set up is a URL pointing to a JSON document describing your app's changes. AppUpdateChecker A simple non-Market way to keep your app updated.Chinese library, but should do the trick, far out the most popular library to do this, but this can be just because Google Play is not available in China. I haven't had the need to do this myself, but here are some solutions: In fact, a good chunk of Chinese app makers have to provide self-updating apks for users to download directly simply because there are way too many app stores in China. Both Facebook and Amazon provided downloadable apk versions of their apps that could self-update. It's totally possible to do self-updating app apk without going through the play store.

It is really unfortuante that nobody stepped up and saved me some time hunting through all this, but oh well.įeel like OP got S*** on unnecessarily here (or just got really misunderstood). Resulting intent will still require user confirmation to install and then re-launch the file. getExternalStorageDirectory (see this and this) pretty much requires use of AndroidJNI to call it (becasue callStatic asks for a signature that returns and not java.io.File), but creation of intent can be done entirely through AndroidJavaClass/ AndroidJavaObject.Īnd that's pretty much it. OR download the file into temporary location within Environment.getExternalStorageDirectory and then open it with Intent ACTION_VIEW via method described here.

However, it is fairly trivial to check external ftp/http server for the most recent version, and then either open the link with a new file in the browser via OpenURL. It is not exactly possible to make an unattended automatic self-install for non-rooted device (should be possible on rooted devices, though).
