cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-6048) Add config setting for Android app launchMode
Date Thu, 03 Apr 2014 06:08:15 GMT


ASF subversion and git services commented on CB-6048:

Commit c303a636ac6d8671d805561458158ec6fff414b8 in cordova-amazon-fireos's branch refs/heads/master
from [~mmocny]
[;h=c303a63 ]

Fix CB-6048: Set launchMode=singleTop so tapping app icon does not always restart app

> 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