As you understand, I will download application from my server if user click on the download link. And of course for installing, user will accept in irder to install it. Thus, I wonder ;
- Is it possible to download package from my server? If yes how ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it is possible. Make sure you have your server configured to use the appropriate mime type.
OR
To download the apk in your app, you can use the my open source library here. While it is meant for checking for and downloading updates, you can use it to download other apk files (or any other file at all) as well.
In your Activity add the following code to your onCreate(). If you don’t want toast notifications, change the second parameter to
false:Then, use the following to download and install the update. Note that this will show a progress dialog while downloading: