1
我已經制作了一個PhoneGap應用程序,除了運行KitKat的平板電腦(應用程序安裝,但顯示一個空白的白色屏幕,而不是內容)之外的所有其他設備上都可以運行。我檢查,看看這是否是它是一個平板電腦的問題,但它似乎是android的版本完全一樣的應用程序建立適用於平板電腦的另一個運行Android棒棒糖......phonegap build for kitkat
這是我的配置文件中的代碼,有什麼我需要添加或我應該刪除,以便它將在KitKat平板電腦上正確運行?
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.phonegap.helloworld"
version="1.0.0"
xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android">
<config-file platform="android" parent="/manifest" mode="merge">
<supports-screens
android:xlargeScreens="true"
android:largeScreens="true"
android:smallScreens="true"
android:requiresSmallestWidthDp="600"
/>
<uses-sdk android:minSdkVersion="19"
android:targetSdkVersion="19"/>
</config-file>
<name>My App</name>
<description>
Tablet App.
</description>
<content src="index.html"/>
<preference name="target-device" value="universal" />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="19"/>
<preference name="orientation" value="landscape" />
<access origin="*"/>
</widget>
我沒有使用插件,而是使用build.phonegap構建我的應用程序。
在此先感謝