Download and install android app from another andr

2019-03-04 09:09发布

问题:

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 !

回答1:

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);