Search code examples
androidinstallationapkandroid-install-apk

Android: How to Install Apk like Android Market does


I am new to android. I could install an APK pro-grammatically which is present in the SD card ..It will prompt the user to install the APK. But i need to install without prompting, as we do in Android Market (Google Play), where we click INSTALL and automatically the app gets installed without prompting.

Note:* I found some links on stackoverflow, but all those mechanism will prompt the user.

How to do this? Plz help


Solution

  • There is some information here :

    Install apps silently, with granted INSTALL_PACKAGES permission

    and here :

    How does AppBrain's installation app work?

    I don't think is a really good idea to install something without telling it to the user and/or without showing him the permissions you're asking for. In the second link, CommonsWare give a really good comment about this idea.

    You can take a look on the Android's Developer Distribution Agreement, article 4.5, if you want to publish your app on the Play Store.