Community Questions & Answers
xhdpi android
Hi, in Resources/android/images/ i created res-xhdpi. and i put the images for xhdpi density. i lunch the app in galaxy S3 (which is an xhdpi) but it is not the images that are used...is it normal ? thanks
How to access Android's default.png Splash Image from density specific folders at runtime
Titanium Mobile 3.0 SDK Android 4.x Alloy 1.0 Hi, Is it possible to access the density specific version of the splash screen image at runtime? I have several splash images at different densities...
Correct Path For Android Density Specific Resources
I spent a good part of the day trying to figure out why the Android version of my application was unable to load the density specific versions of an image I created for use in an ImageView. I started with the following...
Density Pixels, differences between Android and iOS retina, please confirm
Hello, In my projects im working quite alot with density pixels. Sometimes however i have to do calculations with both dp and px. For this to work i found a function that converts dp units to pixels and vica verca...
Density Scale Factor for Android?
Hi all, My question is about multiple screen sizes support... So i have an app and some square buttons on the screen. For example: ~~~ var squareButton = Titanium.UI.createButton({ height: '110dp', width:...
Calculate apps density pixel width & height using Titanium.Platform.DisplayCaps.dpi?
When getting the height and width of the application using: Titanium.Platform.DisplayCaps.platformWidth/platformHeight it returns the values in pixels. My app is using density pixel width's and height's so it looks consistent across various devices. Using...
Android different density images (commentary not question)
So, I just started playing around with Titanium for iPhone and Android, using DropBox to keep the files the same between the two. Going back and forth and testing Android on my laptop (the AVDs run better on Windows) and iOS on a Virtural Box. Titanium:...
Density-based images don't work on buttons & annotations
I am using Titanium 1.7.5 on Android 2.3 on Linux. Using the instructions at <http://wiki.appcelerator.org/display/guides/Using+density-specific+resources+on+Android> , I added my icons in **Resources/android/images/res-mdpi/media/icons/**. I see...
Referencing default.png in Android
Hello, I'm trying to make a loading screen with a progress bar that is displayed while the app is starting up. This screen will be displayed after the splash screen and before the actual start screen of the app. This loading screen is going to have the...
Fixing Codestrong app Android image problem
I was wondering the best way to fix the Codestrong app to work on newer Titanium SDKs since it currently does not. I have an app similar in design to it and was hoping to move to Titanium but am not sure how to go about density images on Android and was...
Android density specific folders not working - Ti SDK 1.8.0.1
Hi, I am having issued getting my android density folders to work properly. My image folders are organized as follows: /Resources/android/images/res-hdpi /Resources/android/images/res-mdpi I have also set the following in my...
images for different android devices
hi, im trying to create an app for which looks nice on different android devices. i tried to use the file structure which was given in titanium mobile project. the problem is, that the images are only shown on emulator and device if i give them an...
Dealing with different android densities
So I've been using this code for a while (Two text fields and a login button) ~~~ var username = Ti.UI.createTextField({ color:'#336699', top:130, width:'95%', height:40 }); win.add(username); var password =...
Handling with different resolutions
I'm trying to handle with different screens resolutions, but im not being able to. I've finished my app, but when i tested in differents smartphones it didnt fit well. How I work with the position and the size of the components? And how I work with the...
Multiple Density Layouts
I am trying to understand how to layout my apps so they work on iOS and Android properly. I thought that the baseline width and height was 320x480. And if I setup my views like this: ~~~ var testView = Ti.UI.createView({ bottom: '0dp', width:...
Difference in DPI calculations between iPhone and iPad
I have been using the DPI units for all my layout positioning to keep my apps consistent across devices. I have taken the conversion function from a [previous...
Android image folders
I have a background image for the main/home screen. In developing for Android's multiple resolutions and densities, I'm trying to take advantage of Titanium's density-specific folders with no...
Different image sizes for Android - confused.
Hey there. Hopefully someone can point me in the right direction. I've been using Titanium for about a year doing primarily iOS stuff. Now, as I'm getting into Android, im confused by all the different sizes and densities of the different screens. My...
[android] remote image size
This only affects on Ti.UI.ImageView. It doesn't affect on row's leftImage or Ti.UI.View(backgroundImage)  As you can see , i have an 100x100 remote jpg which i define it as this: ~~~ var imageFRow =...
Density specific graphics for Android Map Annotations
Is it possible to provide density specific graphics for android map annotations (the pins)? Rather than going down the 'auto scale route' ie ~~~ <manifest> <supports-screens android:anyDensity="false"/> </manifest> ~~~ I've...
Barcode android M-Way density
Hi, I installed the M-Way barcode module on an Android. My problem is, when I set "false" to the anyDensity parameter, the size of the app is correct but the barcode isn't center. When I set anyDensity to "true", the barcode is well...
density images not working after upgrade to studio 1.0.7 and sdk 1.8.0.1
Device: android Studio version: 1.0.7 Sdk : 1.8.01 I've upgraded this morning, but icons from the tabgroup aren't displaying anymore. I am working with 3 folders in...
Android Density folders error with tab icons using Titanium SDK 1.8
Hi, I'm developing a app for iPhone and Android and have had issues using the different density folders with the 1.8 SDK. The images aren't copied to the build -> android -> images folder. I've had tried using both the high/medium/low folder...
bug? Using density-specific resources on Android
Followed this guileline: https://wiki.appcelerator.org/display/guides/Using+density-specific+resources+on+Android Worked when I was using 1.7.5/6, but since the upgrade to 1.8.0.1 no icons are shown at all. My tiapp.xml: ~~~ <supports-screens...
image density support android
I keep running into problems with android!... i have followed the guides that state to create high, low and medium folders in the /image/ directory... i added the supports-screen lines in the tiap.xml and it doesnt work. ~~~ var b =...
Considering dropping Titanium ....Multi screens/density/devices development and titanium issues
Hi, I am developing an application for android since a while. I used to develop native application... but this time I tried Titatium. Recently, I tried my application in another emulator. A HVGA, which is medium density. The application was a complete...
Why don't images load from the iPhone resource folder? (density specific resources)
Hi all, I am following http://wiki.appcelerator.org/display/guides/The+Application+Project+Structure#TheApplicationProjectStructure-DensityspecificResources in my code. I have an iphone folder inside resources and an adroid folder. I put my logo.png...
screen density Vs screen resolution
What is difference between screen density and screen resolution?
How can i install my own android app in galaxy tab 10. 1 or galaxy , it's so small but it's good in emulator
Hi! everyone In order to set up android app in galaxy tab 10.1 but I failed <supports-screens android:anyDensity="false"/> I add it in tiapp.xml file , but it doesn't work normally The display is so small? How i can solove this...
Android density folders
Hi, Further to my general troubles with making things fit on Android screens (gotta love the fragmentation that manufacturers force on us - killing the golden goose). ...I now have this question;- If you start to use the density specific folders do you...
android.content.res.Resources$NotFoundException
I kept getting "android.content.res.Resources$NotFoundException" on various Android devices like tablets (Android 3.1 Honeycomb) etc. and had a little trouble figuring out how to fix it so I wanted to share my solution. I had to put a copy of...
Android annotation image density
It appears as though a map annotation image does not take into account a device's density. I'm working with 1.7.0.RC1 and developing on a Nexus S. I'm using custom annotation images with them set in the appropriate res directories, but the images appear...
Why doesn't Android custom font-size not work with JSS?
I have a custom font I would like to use for different Android densities. Apparently, font-size placed using JSS doesn't work. It appears to be extremely small. Is there a hack or trick anyone uses to get it to...
res-long-land-hdpi etc
Hi, I have been trying to use both jss files and the various image folders in android/images to make my app work on a very small screen. (HTC Wildfire). Nothing seems to show. I have been directed to look at tweetanium, but that only has the...
Multiple density images not found
I followed the guide here: http://developer.appcelerator.com/guides/en/app_structure.html to use high & medium density images for android. My file structure...
Showing 1-35 of 35