2013-03-17 117 views
-1

我已經開發了使用HTML5 with jquery mobile framework 2 Android原生的應用程序,最後我用Phonegap build功能爲構建我的應用程序文件apk,它的工作不錯..PhoneGap的第一個應用程序所取代Android的安裝第二個應用程序

我的問題是,我首先得安裝我的第一個應用程序我的三星Galaxy S3設備其工作正常,但是當我安裝我的第二個應用程序到相同的設備它說「這個應用程序,你正在安裝將取代另一個應用程序」,爲什麼這樣。這兩個應用程序是完全不同的風格,大小等...但仍然安裝第二個應用程序第一個應用程序更換時... phonegap​​3210必須添加任何額外的行忽略此問題。

這是我​​3210文件第一次申請

<?xml version="1.0" encoding="UTF-8"?> 

<!-- config.xml reference: https://build.phonegap.com/docs/config-xml --> 
<widget xmlns  = "http://www.w3.org/ns/widgets" 
     xmlns:gap = "http://phonegap.com/ns/1.0" 
     id  = "com.phonegap.q8scool" 
     version = "1.0.0"> 

    <name>Q8Scool</name> 

    <description> 
     Q8Scool is a free app for teachers and students, a new level online classroom... 
    </description> 

    <author href="http://phonegap.com" email="[email protected]"> 
     Gates Business Solutions 
    </author> 
    <feature name="http://api.phonegap.com/1.0/device" /> 
    <preference name="permissions"    value="none"/> 

    <!-- Customize your app and platform with the preference element. --> 
    <preference name="phonegap-version"   value="2.3.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="true" />   <!-- 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="true" />   <!-- 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="true" />   <!-- ios: if set to false, the spinner won't appear on the splash screen during app loading --> 
    <preference name="auto-hide-splash-screen" value="true" />   <!-- 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="14" />    <!-- 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. --> 
    <!-- Define app icon for each platform. --> 
    <icon src="icon.png" /> 
    <icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android" gap:density="ldpi" /> 
    <icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android" gap:density="mdpi" /> 
    <icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android" gap:density="hdpi" /> 
    <icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android" gap:density="xhdpi" /> 
    <icon src="res/icon/blackberry/icon-80.png"  gap:platform="blackberry" /> 
    <icon src="res/icon/blackberry/icon-80.png"  gap:platform="blackberry" gap:state="hover"/> 
    <icon src="res/icon/ios/icon-57.png"   gap:platform="ios"  width="57" height="57" /> 
    <icon src="res/icon/ios/icon-72.png"   gap:platform="ios"  width="72" height="72" /> 
    <icon src="res/icon/ios/icon-57-2x.png"   gap:platform="ios"  width="114" height="114" /> 
    <icon src="res/icon/ios/icon-72-2x.png"   gap:platform="ios"  width="144" height="144" /> 
    <icon src="res/icon/webos/icon-64.png"   gap:platform="webos" /> 
    <icon src="res/icon/windows-phone/icon-48.png" gap:platform="winphone" /> 
    <icon src="res/icon/windows-phone/icon-173.png" gap:platform="winphone" gap:role="background" /> 

    <!-- Define app splash screen for each platform. --> 
    <gap:splash src="res/screen/android/screen-ldpi-portrait.png" gap:platform="android" gap:density="ldpi" /> 
    <gap:splash src="res/screen/android/screen-mdpi-portrait.png" gap:platform="android" gap:density="mdpi" /> 
    <gap:splash src="res/screen/android/screen-hdpi-portrait.png" gap:platform="android" gap:density="hdpi" /> 
    <gap:splash src="res/screen/android/screen-xhdpi-portrait.png" gap:platform="android" gap:density="xhdpi" /> 
    <gap:splash src="res/screen/blackberry/screen-225.png"   gap:platform="blackberry" /> 
    <gap:splash src="res/screen/ios/screen-iphone-portrait.png" gap:platform="ios"  width="320" height="480" /> 
    <gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png" gap:platform="ios"  width="640" height="960" /> 
    <gap:splash src="res/screen/ios/screen-ipad-portrait.png"  gap:platform="ios"  width="768" height="1024" /> 
    <gap:splash src="res/screen/ios/screen-ipad-landscape.png"  gap:platform="ios"  width="1024" height="768" /> 
    <gap:splash src="res/screen/windows-phone/screen-portrait.jpg" gap:platform="winphone" /> 
    <access origin="http://127.0.0.1*"/> <!-- allow local pages --> 
</widget> 
+0

我不熟悉'PhoneGap',但它看起來像兩個應用程序具有相同的包名。嘗試爲其中一個應用程序更改'id =「com.phonegap.q8scool」''。 – 2013-03-17 09:09:44

+0

@vmironov非常感謝你,它的工作,很棒。我嘗試了這些改變,現在它爲我工作.... – mans 2013-03-17 10:26:13

回答

0

我得到的回答我的問題從上面的評論之一。 只是用不同的id爲每個應用程序,

上面的例子:id = "com.phonegap.q8scool"id = "com.phonegap.othername"

相關問題