Can an Android app install another android app?

前端 未结 5 1872
闹比i
闹比i 2020-12-24 15:09

I was wondering if it was possible to have an android app which is already installed go and download another app and install it? I figure there could be security problems wi

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 15:37

    Yes. This is how the Swype beta works. What you basically do is download the new apk, and use some Intent (not sure which) to launch the Package Installer (and at this point it is a new activity and the user has to agree to install just like downloading from the Market).

提交回复
热议问题