Getting "Undefined" reading logicalDensityFactor on Android - titanium

I'm testing a Titanium App on an Android emulator.
I use dip units, so i need to know the Ti.Platform.displayCaps.logicalDensityFactor to get the propers numbers.
But when I try to read:
Ti.Platform.displayCaps.logicalDensityFactor
Ti.Platform.displayCaps.xdpi
Ti.Platform.displayCaps.ydpi
I get undefined everytime!
Someone knows why this happen to me? is the emulator or what?
Thank you

Found the solution!
The string is Case Sensitive and Titanium don't generate any error if you write it wrong.
Another problem is that Titanium suggest me
Ti.Platform.DisplayCaps
and not with a lower "D"
Ti.Platform.displayCaps
So if you get this error, make sure that you had write correctly the string!

Related

Expo constants deviceId and installationId undefined

I am using Expo SDK 35 with expo-constants v7.0.0.
I used to get a value for Constants.deviceId but now it is coming back as undefined.
I Googled and saw that there is meant to be another property called installationId which superseeds this, but this is undefined also.
Can anyone shed any light? I need a unique ID per device/installation to identify the device on my server, is there any other expo library that can do this?
Thanks in advance
Expo.Constants.deviceId is deprecated and will be removed in Expo SDK 44, we will need to implement our own solution to keep track of device unique identifiers, see my answer here stackoverflow it will work for IOS and Android.

Couldn't find module:alloy/controller/container for architecture:i386

Everybody.
Now I am building a simple titanium project using appcelerator studio.
I am a beginner in this scope(titanium).
So I have some problems.
First I can't use "Alloy.createcontroller()".
Anyway I can see the message after running my project in iOS simulator (iOS 9.1).
Please let me know the reason why.
Help me!
Regards.
This error should only occur if you are missing this controller in app/controllers/container (case sensitive)

Application Validation gives an error

Im redy to upload an ios app to apstore. Im using xcode 5. After archiving when I try to validate the archive it gives this error. Please tell me how to solve this
This is the error that Im getting
And this how I set the background modes for audion in my info.plist file
Please help me...
Thanks
Please refer to this link,
https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW22
This contain information about different background modes keys.
Also you already included the audio playing mode in the first line, which is valid and the last one is not a background mode, so remove that one and it will work.
Also provide 120 by 120 px icon which is recommended.

How to use xcode's Fix and Continue debugging feature?

I have not find any tutorial about using xcode's "Fix and Continue feature". If someone knows how to use this please let me know. I would like to use this feature in iOs Apps. Does some knows a way to use this. Whenever I use this I got error "classname.m dylib" not found.
Here is a screen-shot when using fix and continue feature for iPhone apps.
Second result from just typing 'xcode fix and continue' into the search field on google gives http://thurly.net/14ty
This shows (albeit following a long previous tutorial) how fix and continue works.

iphone sdk - Itunes connect how to change device requirements?

What is it im supposed to set in the plist so that it shows that it does not work on the ipad on itunes?
its somthing to do with this http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedFeatures/AdvancedFeatures.html but I dont see anything that seems appropriate?
Im still kind of noobish so I'd appreciate a really simple answer or as simple as possible.
Thanks for your time
In Project Settings -> Build tab, Deployment category, Targeted Device Family.