Community Questions & Answers
Expose Custom Controls Properties
I have a custom timepicker control and I want to expose some properties out such as the value of the control and what the value would be in 24 hour format but I can't seem to get the functions to be exposable ~~~ function...
Loading a model inside a service
I have this model that is working well on controllers: ~~~ exports.definition = { config : { "columns" : { "active" : "Bool", "name" : "String" }, ...
Remove data from model cause Uncaught RangeError
Some code: ~~~ var items = Alloy.createCollection('preferences'); // Populate table on fetch model items.on('fetch', setTableData); // Listem to Collection's Events to commit the Model's changes within the persistence layer items.on('add', function(m){ ...
Alloy model saving not persisting
I am using Alloy and a data model to hold my settings. For now, I am using the properties sync adapter to persist my settings. Here is its definition: ~~~ exports.definition = { config : { "columns" : { ...
Titanium.App.Properties with app updates
Hello, I'm ussing App.properties to store some App data as App revision number, licence number, etc. what happend with data stored with [Titanium.App.Properties](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.App.Properties) when the app is...
Confused about execution order with properties
Maybe I'm just missing something here, but I seem to be seeing results that indicate that something like setting a position property in Titanium does not fully complete before the next line of code executes. This is driving me insane. I am trying to...
Image resizing (and more..)
THIS IS A GUIDE ========== I came across few questions regarding this issue for manipulating images for decreasing resolution or what not - and none of the solutions i saw was perfect so i decided to give it a try. For image resizing: -------- You can...
Titanium.App.Properties.removeProperty does not force writing option
Titanium desktop 1.1.0. Seems like function: ~~~ Titanium.App.Properties.removeProperty("key"); ~~~ does not really write to global `application.properties` file like setString do. It's means that when you remove property from...
Question abount store information
Hello all, firts of all i want to apologise if this question is already answered or there are more information, because i couldn't find anything... for sure is that i hadn't search a lot for it. my question is: i have to store on device, information...
Ti.App.Properties aren't read pproperly on actual device
(I wrote this question once already, and the submit came back with the "Bad Request" page. So let's try again...). **Studio** Titanium Studio, build: 3.0.1.201212181159 Build: jenkins-titanium-rcp-master-350 (origin/master) Date: 18 December...
Does these picker properties (which are not documented in the titanium docs) also work on iOS?
I find out that these properties work for a picker in Android ~~~ var p = Ti.UI.createPicker({ backgroundColor: '#441122', borderWidth: 1, borderColor: '#000000', color: '#CCCCCC', }); ~~~ This is not documented in the docs but it works on Android...
Titanium Mobile properties setlist not working and returning nothing
Hi, I am trying to save some data on the device, it keeps record of rss items being read. This is needed so a tableview can show an indicator wether the item is read or not. Below is the code snippet which I use, but the getList and setList always return...
Access Ti.App.Properties from module
Hi I'm developing an android app that receives push notifications. When my app receives push notification i want to check if a user account has been saved to the app properties. If account is not saved then i want to unregister the user's device from push...
Call / Load the iPhone Settings App view inside the App
Hi, I've setup a traditional settings.bundle/Root.plist to handle all my app properties. Pretty useful and All work perfect... Except that i would like to allow the user to change this properties directly into the app as well in order to avoid switching...
cannot read propery "X" from null android problem
Hi, I have an issue with Android, I get an error that on Iphone I don't have it.. Supposely Titanium objects are host JS objects right? so .. even if a property doesn't exist... you can access it and it will be null or undefined... or something... By...
Gettings App properties into iPhone Settings App
Right, fed up with banging my head against the wall on this one. Can someone provide a quick 'How-to' on getting application properties into the iPhone 'Settings' app please? KitchenSink does it, but I can't seem to replicate it at all. The only...
Android: 'properties'-Parameter doesn't work on Facebook Feed Dialog
Hi, Application type: Android und Iphone, Titanium SDK: 2.0.1GA2, Platform & version: Android 2.3, Device: Samsung Galaxy Ace, Samsung Galaxy S II, Host Operating System: OSX, Titanium Studio: 2.1.2.201208301612 Below ist my example code: ~~~ var...
How to change properties of a variable in a for loop
~~~ for (var i = 1; i < (x+1) ; i++){ var b = Titanium.UI.createButton({ width: bs, height: bs, id: "btn"+i, index: i, backgroundImage: "bBG"+i }); }; ~~~ This doesn't work. Also `backgroundImage: bBG+i` or...
Android not saving settings
I am trying to use *Titanium.App.Properties* to save settings on the device. This works just fine on IPhone. Trying to achieve the same on Android it will lose these information as soon as I kill the application with a task manager. Is this behaviour...
SDK 2.1.0 properties.setobject error when setting null
Very excited to find setObject and getObject now added to properties in SDK 2.1.0 but found that I can't set an object that had a null element. Is this correct, or a bug? eg: `Ti.App.Properties.setObject('userObj',{UserID:null});` give the following...
are 2000-3000 character strings bad to use with Persistency operates ?
Should I create a database for these? I only have a short database, and I would like to avoid it. Do you think I can use properties?
Ti.App.Properties seems not working when the app is killed on Galaxy S only
On Galaxy S(Samsung, android 2.2.1), Ti.App.Properties may not store a value after killing the application manually. (Titanium mobile; SDK 2.0.1GA2, android JS:V8) I'll try to store some value like this: `Ti.App.Properties.setInt('age', 1);` Then I kill...
How to use Ti.App.Properties.getList() properly?
This is my code. ~~~ var win = Titanium.UI.currentWindow; Titanium.UI.setBackgroundColor('#FFF'); var windowArray = []; var winObject =...
Titanium App Properties size
In Titanium we can use App Properties to storing application related values/property. Is there any size(memory) limitation in App Properties? If so how much data(string or integer or object) can I store using App Properties? Thanks
Select views by property
Hi, how can I select some group of views by some of their properties? For exemple: ~~~ var optionCheck = Ti.UI.createView({ width: sz(26), height: sz(26), backgroundImage : '../resources/routes/check_disabled.png', left:sz(25), ...
Objects properties can't be read after view is changed
I have 2 views, each one has a set of other views, let's say two text fields each. Now a window opens the first view using an animation. I write something on both text fields of that view and it works - the value property of each text field changes. Then...
Updating a setint value
Hi i need to update an int value saved in Ti.App.Properties.setInt('name',value). I am able to save it in in 1 js, but when i again save it in another js and get in 1st js. it is not giving me any value. Can anyone help me over this. Thanks
Properties + Settings.bundle/Root.plist
Hi, in my project I want to use the app properties. In app I'am using the methods `Ti.App.Properties.setString('vname','Rainer');` and have copied `modules/iphone/Settings.bundle/Root.plist` from kitchen sink to my project. But in global preferences of...
Create schedule with alerts
Hi. I wonder if it is possible to make your own schedule and then make alerts insay 1h before. Scenario. You have like a music festival app. With several artists on several stages on different times. If you coulld have like i tickbox/button/whatever...
How to use getNowPlaying
Hi, I would like to use the object nowPlaying in my iphone app but I can't find any info on the properties, methods, etc. it has. Do you know any of them? Thanks
How to secure application properties
Hi all, I store a few things in application properties like a password. If I unterstand it correct, the application properties are just files located within the file system, see...
Ti.App.Properties.getInt not working properly on mobileweb
Hi, Just noticed that Ti.App.Properties.getInt is not returning the default value when not set. Example: ~~~ var p =Ti.App.Properties.getInt('propertyname', 0); alert(p); //returns null on mobileweb but 0 on...
Application Settings not getting installed
Almost our entire ipad app depends on application settings being configured. At the moment, on Titanium SDK 1.8.2 and iOS 5, it does not appear to be installing the application settings. When I go to see them on the device, there are no options for our...
Ti.App.Properties After re-install or Update
If we have this code ~~~ var isInstalled = Ti.App.Properties.getBool("is_installed", false); if (isInstalled) { // show the UI ... etc } else { // we will install the database and some configs... // and...
Titanium.App.Properties.getString broken - iOS5
No matter what I do, I cannot get a setting to be retrieved. In fact, because the app depends on these settings it just refuses to go any further. Is there any way to see what is being returned for listProperties() on an iOS device? Titanium.App.Info() is...
Ti.App.Properties Doesn't Work!! Help T_T..
'app.js' ~~~ Ti.UI.iPhone.setStatusBarStyle(Titanium.UI.iPhone.StatusBar.OPAQUE_BLACK); Ti.UI.setBackgroundColor('#FFF'); var tabGroup = Ti.UI.createTabGroup(); var main = Ti.UI.createWindow({ url:'main.js' }); var friend_list =...
animate will return the object to the initial coordinates. why?
I'm trying to move the top of a view with an animation..but when the animation finishes it returns to it's initial top ~~~ var a = Ti.UI.createAnimation({ top : -220, duration : 3000, autoreverse : false, ...
Properties File
I've used the Ti.App.Properties to store some informations from my application but i think sometimes the Properties File is not updated. What i can say is the following: For example, i have a textField called fieldUsername and i set the propertie...
Data use in multiple windows.
Hi,I am currently developing android application.In my application number of json objects are fetched from server and use in multiple windows.Those objects may get modified.To store and use in multiple windows I am currently using...
Logging objects
I've been playing with Titanium for a bit now and so far one of my major gripes is the limited logging using the built-in Titanium.API.log() function. Being spoiled with PHP's var_dump function I was trying to simulate this functionality, but I got stuck...
SDK 1.8.x - VideoPlayer properties locked
Hello, As far as I know, on ipad, Since 1.8.x SDK Branch, I saw that VideoPlayer properties (top,left,width,height) are locked if you create it with "visible:false". Here the code to test ~~~ // this sets the background color of the master...
Titanium.App.Properties, is it safe.
I'm using Titanium.App.Properties to store user highly confidential data. So is it safe to store values here. Is it possible jailbreak iPhone's to leak this values. Is this values encrypted or stored as plain text? Thanks in Advance.
position properties (top, right, bottom, left) not updating after animation
I have a view that I'm trying to toggle with a button using this code.. ~~~ animateSlideIn = Ti.UI.createAnimation({bottom:0}); animateSlideOut = Ti.UI.createAnimation({bottom:(pickerView.height * -1)}); toggleButton.addEventListener('click',function(e)...
Properties
Hi, how can I use properties mechanisme to store app datas? I have copied the complete modules folder from kitchensink in my project. but an icon of my app doesnt appear in preferences section… Best regards Rainer
Accessing Ti.App.Properties from a Module (Java)
I am using push notifications and have not managed to have them work properly if the app is closed (because my callback function cannot run)... Therefore, I want to save the information and do something with it later when the app starts. What I want is to...
Titanium.App.Properties.getString() on Desktop app
Hello, I have a problem with getString function in a desktop app. I would to know if a string for example `Titanium.App.Properties.getString('username');` is already saved and if not I have to save the string with...
Using of properties
Hi, in my project I want to use properties. Thats why I have copied the modules/iphone directory to my project. But nothing happens in system preferences … Any idea to solve it? Rainer
Titanium.App.Properties.getString doesn't return default on Android
Hi, I'm trying to use Titanium.App.Properties.getString on Android. It doesn't seem to return the default value if nothing has be set in the property data base. i.e. Titanium.App.Properties.getString('aKey','defaultValue'); returns null Is anybody else...
// Properties deleted on statup in 1.7.4
All stored properties are deleted on startup?! Is this happen only to me?
Where is the App.Properties file on Windows?
I know that on Linux the is located at ~/.titanium/My App/application.properties. I can't find it on Windows and I wold like to look at it to debug something in My App!
Showing 1-50 of 100 1 2