简体   繁体   中英

Download and install android app from another android app

Is it possible to download and install android application(from Google Play) from another android application ? If so, could you please provide an example how to implement it? Thanks !

You can do this with the help of the play store application:

    Uri uri = Uri.parse("market://details?id=" + "the.package.name");
    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
    activity.startActivity(intent);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM