If you are unsure about the URL, you can try this. String URL = getApplicationContext().getContentResolver().open URL(“file:”, new Intent(new URI(“android.net.download. DownloadManager”), 0)).result(); byte data = disutilities.decode(URI); getApplicationContext().startService(Context.DATA_SCHEME); getApplicationContext().startService(Context.LOCALE_ENGINE); getApplicationContext().startService(Context.LOCALIZATION_ENABLED, Context.LOCALE_CODES); if((sender == null) ||(sender.subaccount())) getApplicationContext().startService(Context.INCOMING_SERVICE); else startActivityForResult(activity, 0, 0);} Download Android app (for the first time) Now if you use the new version of Android Studio you can do it at any time via the new File > Open with popup menu option. Here are a list of available tools to help you manage Android .APK files: • A file browser, or browse or navigate all files inside the zip/APK. You can open any new and existing android APK files. Download and install file programmatically This article was originally published on August 18th, 2018. Today, Google officially announced that Android Studio will be the only tool to manage files on the Android device. Google has added three useful new tools in Android Studio to help developers manage their files on the device: Download/install to/from a location (new in Android Studio 3.0), download files to/from a location (new in Android Studio 3.0), and share files from any location on the device (new in Android Studio 3.0). Let's take a closer look. How to use 'Download to/from' The first tool in this list is 'Download to/from'. In other words, if you download a file from a location on your PC, Android Studio detects it and attempts to install it automatically onto your device. It will also try to auto-reconnect your data in the background and, if required, you get a notification for each successful download. For this, you have two options: Either choose a file from your device's file manager, or choose a file via the File > Open menu.