cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <>
Subject [jira] [Reopened] (CB-3064) The preferences are read only the very first time the application runs
Date Tue, 23 Apr 2013 20:53:15 GMT


Joe Bowser reopened CB-3064:

This is an issue only when you use, for some reason onCreate isn't run
half the time and it resumes without any data.  This is a weird Android lifecycle bug since
onCreate should always be called, but this is documented nowhere.

That being said, patches are welcome, and if this bug was better explained, much time would
have been saved.
> The preferences are read only the very first time the application runs 
> -----------------------------------------------------------------------
>                 Key: CB-3064
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.5.0, 2.6.0
>         Environment: All Android versions and devices
>            Reporter: Davide Maestroni
>            Assignee: Joe Bowser
> The preferences in the config.xml file are not read again if application exits and then
> A simple test is to set the background color to GREEN (-16711936 or [0xff00ff00]) and
use an html page with transparent background. 
> The first time it is run, the application correctly displays a green background but then,
after exiting by pressing the back or home button, and re-running it, the background stays
> Forcing the application thread to stop from the Android settings menu seems to cause
the preferences file to be read again.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message