Today, the Google Drive app asked if I want to install new Sheets and Docs apps.
I agreed, expecting it to open the Google Play Store so I can click on install.
This is not . He just showed me a pop-up window with the permissions of each of the applications to confirm the installation, the same thing that appears when you click "Install" in any application in the Play Store.
I did not know that this could be done.
How can we reproduce this behavior in the application: is there a "Install XPTO application" button that does not need to open the Google Play Store? Just shows a dialog with permissions and proceeds to install it through the Play Store?
UPDATE:
For those who seek, because they think that this is the same as other questions ... This is not so!
In this case, the APK is not downloaded by the Google Drive application and then installed. Google Drive "tells" the Play Store to download and install.
What an API that interests me.
To support my case: after clicking INSIDE Google Drive to install applications without opening the Play Store, the download starts . During the download, I opened the Play Store to check and:

The screenshot proves that Google Drive does not download the APK and does not install it. This is the Play Store.
android
neteinstein May 16 '14 at 12:35 2014-05-16 12:35
source share