You might need to find the screen width and height of Andriod/iOS devices to make your application compatible in different sizes of screen. So by using the following lines of code you can fetch the screen height and width of Android/iOS devices with Titanium.
//fetch the height of the screen
var screenHeight = Ti.Platform.displayCaps.platformHeight;
//fetch the width of the screen
var screenWidth = Ti.Platform.displayCaps.platformWidth;