[ 
https://issues.apache.org/jira/browse/CB-6772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15023884#comment-15023884
 ] 

Rajil Davda commented on CB-6772:
---------------------------------

I still am unable to set launchMode from config.xml file. Is this issue still 
persist?
Below is the environment details:
Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local: 
Ionic CLI Version: 1.7.8
Ionic App Lib Version: 0.6.4
ios-deploy version: 1.8.2 
ios-sim version: 5.0.3 
OS: Mac OS X El Capitan
Node Version: v4.1.1
Xcode version: Xcode 7.0 Build version 7A220
Below are the plugins i'm using:
com.ionic.keyboard 1.0.4 "Keyboard"
com.verso.cordova.clipboard 0.1.0 "Clipboard"
cordova-plugin-calendar 4.4.4 "Calendar"
cordova-plugin-contacts 1.1.0 "Contacts"
cordova-plugin-crosswalk-webview 1.4.0 "Crosswalk WebView Engine"
cordova-plugin-customurlscheme 4.0.0 "Custom URL scheme"
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-email 1.0.0 "EmailComposer"
cordova-plugin-fileopener 1.0.3 "FileOpener"
cordova-plugin-inappbrowser 1.0.1 "InAppBrowser"
cordova-plugin-splashscreen 2.1.0 "Splashscreen"
cordova-plugin-statusbar 1.0.1 "StatusBar"
cordova-plugin-transport-security 0.1.1 "App Transport Security"
cordova-plugin-whitelist 1.0.0 "Whitelist"
cordova-plugin-x-toast 2.2.1 "Toast"
hu.dpal.phonegap.plugins.PinDialog 0.1.2 "PinDialog"
hu.dpal.phonegap.plugins.UniqueDeviceID 1.2.0 "UniqueDeviceID"
phonegap-plugin-push 1.4.4 "PushPlugin"
Below is the code i added into config.xml for launchMode:
......
<platform name="android">
<preference name="AndroidLaunchMode" value="singleTask"/>
.......
Below is the AndroidManifest.xml file generated by cordova:
<activity 
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" 
android:label="@string/activity_name" android:launchMode="singleTop" 
android:name="MainActivity" 
android:theme="@android:style/Theme.Black.NoTitleBar" 
android:windowSoftInputMode="adjustResize">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<data android:scheme="myAppName" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>

> Android Configuration lack AndroidLaunchMode preference
> -------------------------------------------------------
>
>                 Key: CB-6772
>                 URL: https://issues.apache.org/jira/browse/CB-6772
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs
>    Affects Versions: 3.5.0
>            Reporter: Gen Liu
>            Assignee: Michal Mocny
>
> Cordova 3.5.0 release note shows there is a new feature that allow user 
> change Android Activity launch mode.
> http://cordova.apache.org/announcements/2014/05/23/cordova-350.html
> It sounds interesting to me and I noticed cordova-android project can 
> generate a project use android:launchMode="singleTop" with 
> AndroidManifest.xml. But it will be override by cordova-cli. I found I must 
> add a preference to config.xml to make it appear in my project, which is not 
> mentioned in the Document:
> <preference name="AndroidLaunchMode" value="singleTop"/>
> Please add it to document.
> http://cordova.apache.org/docs/en/3.5.0/guide_platforms_android_config.md.html#Android%20Configuration



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to