安卓:从PhoneGap的应用程序打开Play商店链接 [英] Android: Open Play Store links from PhoneGap app
问题描述
我想从我的PhoneGap应用程序3.4打开链接到谷歌Play商店。
调用市场://详细信息的id = com.google.android.apps.maps
导致在此规定的ActivityNotFoundException:
I want to open a link to the google play store from my phonegap 3.4 app.
Calling market://details?id=com.google.android.apps.maps
leads to an ActivityNotFoundException which is defined here:
<一个href=\"https://github.com/apache/cordova-android/blob/af440460e10da89caa167ecb5c266f3857493f90/framework/src/org/apache/cordova/CordovaWebViewClient.java#L208\" rel=\"nofollow\">https://github.com/apache/cordova-android/blob/af440460e10da89caa167ecb5c266f3857493f90/framework/src/org/apache/cordova/CordovaWebViewClient.java#L208
我有什么改变,使这应该处理这个意图的活动被发现的?
任何帮助AP preciated!
What do I have to change so that the activity which should handle the intent is found? any help is appreciated!
推荐答案
我要回答我的问题:
原来,code是完全正常的,但谷歌Play商店并不对,我用模拟器安装。在与谷歌Play商店应用程序安装在真实设备,一切工作。
Turns out the code was perfectly fine but Google Play Store wasn't installed on the simulator that I was using. On a real device with the Google Play Store App installed, everything was working.
这篇关于安卓:从PhoneGap的应用程序打开Play商店链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!