this question has already been asked here How to install applications programmatically without opening Play Store (as Google Drive does) but I want to know how it works
I am supposed to write this code:
Intent intent = new Intent("com.android.vending.billing.PURCHASE");
intent.setClassName("com.android.vending","com.google.android.finsky.billing.lightpurchase.LightPurchaseFlowActivity");
intent.putExtra(EXTRA_NAME, EXTRA_VALUE);
startActivityForResult(intent, 0);
So what should be in this line: intent.putExtra(EXTRA_NAME, EXTRA_VALUE);
and how it's getting another app without opening play store