0
这个问题已经在这里How to install applications programmatically without opening Play Store (as Google Drive does)问,但我想知道它是如何工作安装的应用程序编程不开扩Play商店
我应该写这样的代码:
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);
所以应该是什么这一行:intent.putExtra(EXTRA_NAME,EXTRA_VALUE);
及其如何获得另一个应用程序,而无需打开Play商店
如果您阅读从中取得此代码的答案,您会发现它具有:“但是,从非Google签名的应用程序调用LightPurchaseFlowActivity失败,因为它们显然(根据日志)检查呼叫套餐的签名......这在当前无法实现“。 – CommonsWare
[如何在不打开Play商店的情况下以编程方式安装应用程序(如Google Drive一样)](http://stackoverflow.com/questions/23695170/how-to-install-applications-programatically-without-opening-play-商店-AS-GOOGL) –