Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Titanium.App.Properties.listProperties() not REALTIME ?

Hi I'm developing a mobile app
and using this to access some stored data:

Titanium.App.Properties.listProperties()

and it works perfect,
but it's not realtime!! Am I right ?
Everytime I need to relaunch the app In order to retrieve a "just" stored property with this method :

Titanium.App.Properties.setString(title,"fav")

Is it possible to do retrieve properties without relaunching the app?

— asked May 25th 2010 by Nicolo Verrini
  • iphone
0 Comments

2 Answers

  • Yup.

    var yourString = Ti.App.Properties.getString("fav");
    
    — answered May 25th 2010 by Kevin Whinnery
    permalink
    0 Comments
  • Hey thank you so much but this is my code :

    var props = Titanium.App.Properties.listProperties();
    for (var c=0;c<props.length;c++)
    {
        var value = Titanium.App.Properties.getString(props[c]);
       Titanium.API.info(props[c]+" = "+value);
        var a = props[c];
        if (value == "fav")
        { 
            var tabba =     Ti.UI.createTableViewRow({title:a,test:'window_layoutfav.js',hasChild:true,myid:a});
            data[x++] = tabba;
    
        }
    }
    

    Thank you anyway,

    — answered May 25th 2010 by Nicolo Verrini
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.