1

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

Cœur
  • 37,241
  • 25
  • 195
  • 267
Tushar Saha
  • 1,978
  • 24
  • 29
  • If you read the answer from which you pulled this code, you will find that it has: "However, calling LightPurchaseFlowActivity from non-Google signed app is failing, because they are, again apparently (according to the logs), checking the calling package's signature... this can not be achieved at this moment". – CommonsWare Sep 13 '15 at 16:30
  • Did you get it to work? – אVי Apr 30 '19 at 19:39

1 Answers1

1

it cant be done, only google signed app can do it.

Tushar Saha
  • 1,978
  • 24
  • 29