2013-05-18 92 views
1

條出版PGB產生的APK - 谷歌劇說的是「不支持」的軟件,即可通過267臺設備,其中包括谷歌Nexus 7的PhoneGap構建 - 在谷歌不支持的設備上播放

config.xml文件:

<?xml version="1.0" encoding="UTF-8"?> 
<widget xmlns = "http://www.w3.org/ns/widgets" 
    xmlns:gap = "http://phonegap.com/ns/1.0" 
    id  = "com.test" 
    version = "1.0.0"> 

    <name>Test</name> 

    <description>Test</description> 

    <author href="http://www.test.com/" email="[email protected]">Test</author> 

    <preference name="phonegap-version"   value="2.5.0" />   <!-- all: current version of PhoneGap --> 
    <preference name="orientation"    value="default" />  <!-- all: default means both landscape and portrait are enabled --> 
    <preference name="target-device"    value="universal" />  <!-- all: possible values handset, tablet, or universal --> 
    <preference name="fullscreen"     value="true" />   <!-- all: hides the status bar at the top of the screen --> 
    <preference name="webviewbounce"    value="false" />   <!-- ios: control whether the screen 'bounces' when scrolled beyond the top --> 
    <preference name="prerendered-icon"   value="true" />   <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen --> 
    <preference name="stay-in-webview"   value="false" />   <!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in --> 
    <preference name="ios-statusbarstyle"   value="black-opaque" /> <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar --> 
    <preference name="detect-data-types"   value="false" />   <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system --> 
    <preference name="exit-on-suspend"   value="false" />   <!-- ios: if set to true, app will terminate when home button is pressed --> 
    <preference name="show-splash-screen-spinner" value="false" />   <!-- ios: if set to false, the spinner won't appear on the splash screen during app loading --> 
    <preference name="auto-hide-splash-screen" value="false" />   <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API --> 
    <preference name="disable-cursor"    value="false" />   <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app --> 
    <preference name="android-minSdkVersion"  value="7" />    <!-- android: MIN SDK version supported on the target device. MAX version is blank by default. --> 
    <preference name="android-installLocation" value="auto" />   <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. --> 

    <gap:plugin name="BarcodeScanner" /> 
    <gap:plugin name="GenericPush" /> 
    <gap:plugin name="GAPlugin" /> 

    <access origin="*" /> 

    <icon src="icon.png" /> 
    <gap:splash src="splash.png" /> 

</widget> 

任何想法如何解決?

回答

1

一般來說,AndroidManifest.xml是您需要檢查的文件。您應該確保爲項目添加了uses-feature並指定了android:required =「false」,例如相機,這些項目對於您的應用程序不是必需的。我已經成功地添加以下到科爾多瓦/ PhoneGap的應用程序,以支持更廣泛的設備:

<!-- support a wider range of devices by not requiring a camera, gps, microphone or phone --> 
    <uses-feature android:name="android.hardware.camera" android:required="false" /> 
    <uses-feature android:name="android.hardware.location" android:required="false" /> 
    <uses-feature android:name="android.hardware.location.GPS" android:required="false" /> 
    <uses-feature android:name="android.hardware.microphone" android:required="false" /> 
    <uses-feature android:name="android.hardware.telephony" android:required="false" /> 

此外,您可以檢查Google Play excludes devices和其他類似結果的問題具體到谷歌Nexus 7

谷歌表示可以檢查APK的支持設備列表以檢查應用程序過濾(http://developer.android.com/distribute/googleplay/quality/tablet.html#google-play):確認應用程序的過濾將應用程序上傳到開發者控制檯後,請檢查APK的受支持設備列表以確保該應用程序未從平板電腦中過濾您想要定位的設備。

相關問題