cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederico Costa Galvão (JIRA) <>
Subject [jira] [Commented] (CB-6048) Add config setting for Android app launchMode
Date Tue, 27 May 2014 15:27:03 GMT


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
cordova platform update android
reinstalled all plugins, and did
cordova build
and then checked all modified files through git.

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

> Add config setting for Android app launchMode
> ---------------------------------------------
>                 Key: CB-6048
>                 URL:
>             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:
> ..which advises to add android:launchMode="singleTask" to AndroidManifest.xml <activity>,
which does fix the issue.
> According to the descriptions in
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
> 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

View raw message