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

Frederico Costa Galvão commented on CB-6048:
--------------------------------------------

My env is:
{Xubuntu 13.10 x86_64}
{node -v = v0.10.25}
{npm -v = 1.4.13}
{cordova -v = 3.5.0-0.2.4}

My project was running on cordova 3.4.1, and didn't have the 
*AndroidLaunchMode* settings on it's root config.xml at that time (as expected 
because it didn't exist). I then upgraded via
{code}
cordova platform update android
{code}
reinstalled all plugins, and did
{code}
cordova build
{code}
and then checked all modified files through git.

I have FacebookConnect and SocialShare plugins installed, other than a  few of 
the official ones.

> Add config setting for Android app launchMode
> ---------------------------------------------
>
>                 Key: CB-6048
>                 URL: https://issues.apache.org/jira/browse/CB-6048
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Android, CLI
>            Reporter: Michal Mocny
>            Assignee: Michal Mocny
>
> As raised on mailing list: "[Android] Apps restart instead of resume when 
> brought to focus by clicking app icon"
> "TLDR; AndroidManifest.xml <activity> needs: android:launchMode="singleTop" 
> -- can I add it?
> Quick search brings up: 
> http://stackoverflow.com/questions/10122449/phonegap-android-application-restarting-instead-of-resuming-although-it-was-not
> ..which advises to add android:launchMode="singleTask" to AndroidManifest.xml 
> <activity>, which does fix the issue.
> According to the descriptions in 
> http://developer.android.com/guide/topics/manifest/activity-element.html the 
> differences mostly stem in how the app handles intents, however, there is a 
> comment in the table of descriptions which labels singleTask launchMode as  
> "(not recommended for general use)".
> On the other hand, singleTop mode *is* recommended, and also fixes the issue, 
> and according to the description, sounds to me like a much better default."



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to