Are there any guidelines/recommendations about graphic content with respect to format, DPI/PPI etc when developing for multiple platforms (ie iPhone and Android).
Obviously I would like my apps to look the same from one to the next, however I have noticed that my images and graphics never look as good on the Android as they do on the iPhone.
I realise that there are different screen sizes to contend with (why isnt there a variable that returns the current display size so you can center labels and things? ). I realise that I could probably do this through a webview with a JSEval and put it in a Titanium.App.Properties.setInt field so that I can use it as a global var… but all that seems a bit naff!
Open to all recommendations and suggestions :)
As I understand Titanium so far, you need to define the sizes of your gui in (for example) inches. Then, you can get the dpi value and transform the sizes to pixel, in respect to the screen of the device.
For the pictures, I think, you have to put each pictures in the various directories, one for every screen format… Tell me if I am wrong.
I think these are what you are looking for:
w=Titanium.Platform.displayCaps.platformWidth; h=Titanium.Platform.displayCaps.platformHeight; d=Titanium.Platform.displayCaps.density; dpi=Titanium.Platform.displayCaps.dpi;
I know they don't answer your original questions but they may help.