2013-03-17 86 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"

相关问题