Issue
As the Android OS divides the available screen densities into three groups, high, medium, and low, We can specify image resources to use per density by placing them in an android/images/density folder, as in:
It will work ...
android/images/high/button.png
android/images/medium/button.png
android/images/low/button.png
But if we put numbers at the beginning of the image names it won't be whether parsed nor displayed.
It won't work ...
android/images/high/1button.png
android/images/medium/1button.png
android/images/low/1button.png
Wiki Document reference
http://wiki.appcelerator.org/display/guides/Using+density-specific+resources+on+Android
Steps to reproduce
1.) Unzip resources and throw it to a Studio project
2.) Run without any number on images names (app will show a button according screen density)
3.) Rename distinct images names under each density folder, CLEAN , REBUILD. (console throws an issue described below)
Project Resources
Project resources have been bundled - attached ZIP file to reproduce quicker - resources.zip
Tested on
Samsung Galaxy Fit Android v2.2.1 & Android Emulator v2.2
Repro sequence
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
var myButton = Ti.UI.createButton({
backgroundImage:'images/button.png',//it will be obviously properly displayed
//backgroundImage:'images/1button.png',//it won't be displayed
top:100
});
win1.add(myButton);
//
// create controls tab and root window
//
var win2 = Titanium.UI.createWindow({
title:'Tab 2',
backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 2',
window:win2
});
var label2 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 2',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win2.add(label2);
//
// add tabs
//
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
// open tab group
tabGroup.open();
Console output - 1.7.3
{noformat}
[INFO] logfile = /Users/egomez/Documents/Titanium Studio Workspace/T10800/build.log
[DEBUG] /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/builder.py install T10800 /Users/egomez/Documents/android-sdk-mac_x86 /Users/egomez/Documents/Titanium Studio Workspace/T10800 com.appc.testx 6
[INFO] Titanium SDK version: 1.7.3 (10/17/11 13:44 dcf4257)
[DEBUG] Waiting for device to be ready ...
[TRACE] adb devices returned 1 devices/emulators
[DEBUG] Device connected... (waited 0 seconds)
[DEBUG] waited 0.019108 seconds on emulator to get ready
[DEBUG] /Users/egomez/Documents/android-sdk-mac_x86/platform-tools/adb -d shell ls /data/app/com.appc.testx*.apk
[DEBUG] com.appc.testx installed? False
[INFO] Copying project resources..
[INFO] Tiapp.xml unchanged, skipping class generation
[DEBUG] detected module analytics, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-analytics.jar
[DEBUG] detected module android, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-android.jar
[DEBUG] adding required library: titanium.jar
[DEBUG] adding required library: ti-commons-codec-1.3.jar
[DEBUG] adding required library: smalljs.jar
[DEBUG] adding required library: jaxen-1.1.1.jar
[DEBUG] detected module ui, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-ui.jar
[DEBUG] detected module app, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-app.jar
[DEBUG] detected module api, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-api.jar
[DEBUG] detected module filesystem, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-filesystem.jar
[DEBUG] detected module media, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-media.jar
[DEBUG] detected module json, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-json.jar
[DEBUG] detected module locale, path = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-locale.jar
[INFO] Compiling Javascript Resources ...
[DEBUG] Processing Android resource drawables
[DEBUG] Detecting modules in /Users/egomez/Documents/Titanium Studio Workspace/T10800/modules
[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules
[DEBUG] Detected module for android: com.codeboxed.imagegallery 0.1 @ /Library/Application Support/Titanium/modules/android/com.codeboxed.imagegallery/0.1
[DEBUG] Detected module for android: com.mwaysolutions.barcode 0.2 @ /Library/Application Support/Titanium/modules/android/com.mwaysolutions.barcode/0.2
[DEBUG] Detected module for android: ti.barcode 1.0 @ /Library/Application Support/Titanium/modules/android/ti.barcode/1.0
[DEBUG] Detected module for android: ti.barcode 1.1 @ /Library/Application Support/Titanium/modules/android/ti.barcode/1.1
[DEBUG] Detected module for android: ti.paypal 1.1 @ /Library/Application Support/Titanium/modules/android/ti.paypal/1.1
[DEBUG] Detected module for android: ti.paypal 1.2 @ /Library/Application Support/Titanium/modules/android/ti.paypal/1.2
[DEBUG] Detected module for android: ti.paypal 1.3 @ /Library/Application Support/Titanium/modules/android/ti.paypal/1.3
[DEBUG] Detected module for android: ti.styledlabel 1.0 @ /Library/Application Support/Titanium/modules/android/ti.styledlabel/1.0
[DEBUG] Detected module for android: ti.urbanairship 1.3 @ /Library/Application Support/Titanium/modules/android/ti.urbanairship/1.3
[DEBUG] Detected module for iphone: com.badanimation 0.1 @ /Library/Application Support/Titanium/modules/iphone/com.badanimation/0.1
[DEBUG] Detected module for iphone: com.bestfitmobile.sound 0.1 @ /Library/Application Support/Titanium/modules/iphone/com.bestfitmobile.sound/0.1
[DEBUG] Detected module for iphone: com.test 0.1 @ /Library/Application Support/Titanium/modules/iphone/com.test/0.1
[DEBUG] Detected module for iphone: info.rborn.modtest 0.1 @ /Library/Application Support/Titanium/modules/iphone/info.rborn.modtest/0.1
[DEBUG] Detected module for iphone: ti.barcode 1.1 @ /Library/Application Support/Titanium/modules/iphone/ti.barcode/1.1
[DEBUG] Detected module for iphone: ti.barcode 1.2 @ /Library/Application Support/Titanium/modules/iphone/ti.barcode/1.2
[DEBUG] Detected module for iphone: ti.charts 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.charts/1.0
[DEBUG] Detected module for iphone: ti.compression 0.1 @ /Library/Application Support/Titanium/modules/iphone/ti.compression/0.1
[DEBUG] Detected module for iphone: ti.gamekit 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.gamekit/1.0
[DEBUG] Detected module for iphone: ti.opengl 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.opengl/1.0
[DEBUG] Detected module for iphone: ti.quicklook 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.quicklook/1.0
[DEBUG] Detected module for iphone: ti.storekit 0.1 @ /Library/Application Support/Titanium/modules/iphone/ti.storekit/0.1
[DEBUG] Detected module for iphone: ti.storekit 1.1 @ /Library/Application Support/Titanium/modules/iphone/ti.storekit/1.1
[DEBUG] Detected module for iphone: ti.styledlabel 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.styledlabel/1.0
[DEBUG] Detected module for iphone: ti.tvout 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.tvout/1.0
[DEBUG] Detected module for iphone: ti.udid 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.udid/1.0
[DEBUG] Detected module for iphone: ti.urbanairship 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.urbanairship/1.0
[DEBUG] found drawable-long-land-hdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-long-land-hdpi/default.png
[DEBUG] found drawable-long-land-ldpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-long-land-ldpi/default.png
[DEBUG] found drawable-long-port-hdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-long-port-hdpi/default.png
[DEBUG] found drawable-long-port-ldpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-long-port-ldpi/default.png
[DEBUG] found drawable-notlong-land-hdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-land-hdpi/default.png
[DEBUG] found drawable-notlong-land-ldpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-land-ldpi/default.png
[DEBUG] found drawable-notlong-land-mdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-land-mdpi/default.png
[DEBUG] found drawable-notlong-port-hdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-port-hdpi/default.png
[DEBUG] found drawable-notlong-port-ldpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-port-ldpi/default.png
[DEBUG] found drawable-notlong-port-mdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-port-mdpi/default.png
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/ApplicationStylesheet.java to javac build list
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/R.java to javac build list
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800Activity.java to javac build list
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800AppInfo.java to javac build list
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800Application.java to javac build list
[DEBUG] Building Java Sources: "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/ApplicationStylesheet.java" "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/R.java" "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800Activity.java" "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800AppInfo.java" "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800Application.java"
[DEBUG] javac -encoding utf8 -classpath "/Users/egomez/Documents/android-sdk-mac_x86/platforms/android-7/android.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-app.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-analytics.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/jaxen-1.1.1.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/titanium.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/ti-commons-codec-1.3.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-api.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/smalljs.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-json.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-media.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-locale.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-filesystem.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-android.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/modules/titanium-ui.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/lib/titanium-verify.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.7.3/android/lib/titanium-debug.jar" -d "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/bin/classes" -proc:none -sourcepath "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/src" -sourcepath "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen" @/var/folders/14/dk2hb8ls4pxd7fnblv4grxqh0000gn/T/tmp2c4UMh
[ERROR] Error(s) compiling generated Java code
[ERROR] /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/R.java:14:
expected
public static final int 1button_28e24fe765=0x7f020000;
^
/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/R.java:14: expected
public static final int 1button_28e24fe765=0x7f020000;
^
2 errors
{noformat}
Console output - 1.8 Ci Build
{noformat}
[INFO] logfile = /Users/egomez/Documents/Titanium Studio Workspace/T10800/build.log
[DEBUG] /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/builder.py simulator T10800 /Users/egomez/Documents/android-sdk-mac_x86 /Users/egomez/Documents/Titanium Studio Workspace/T10800 com.appc.testx 8 HVGA
[INFO] Building T10800 for Android ... one moment
[INFO] Titanium SDK version: 1.8.0 (10/21/11 18:30 e69cc8f...)
[DEBUG] Waiting for device to be ready ...
[TRACE] adb devices returned 2 devices/emulators
[DEBUG] Device connected... (waited 0 seconds)
[DEBUG] waited 0.015738 seconds on emulator to get ready
[DEBUG] /Users/egomez/Documents/android-sdk-mac_x86/platform-tools/adb -e shell ls /data/app/com.appc.testx*.apk
[DEBUG] com.appc.testx installed? True
[INFO] Fastdev server running, deploying in Fastdev mode
[INFO] Copying project resources..
[INFO] Tiapp.xml unchanged, skipping class generation
[DEBUG] detected module analytics, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-analytics.jar
[DEBUG] detected module android, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-android.jar
[DEBUG] adding required library: titanium.jar
[DEBUG] adding required library: ti-commons-codec-1.3.jar
[DEBUG] adding required library: smalljs.jar
[DEBUG] adding required library: jaxen-1.1.1.jar
[DEBUG] detected module ui, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-ui.jar
[DEBUG] adding required library: android-support-v4.jar
[DEBUG] detected module app, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-app.jar
[DEBUG] detected module api, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-api.jar
[DEBUG] detected module filesystem, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-filesystem.jar
[DEBUG] detected module media, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-media.jar
[DEBUG] detected module json, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-json.jar
[DEBUG] detected module locale, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-locale.jar
[INFO] Force including all modules...
[DEBUG] detected module android.calendar, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-calendar.jar
[DEBUG] detected module media.android, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-media.jar
[DEBUG] detected module database, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-database.jar
[DEBUG] detected module android.optionmenu, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-ui.jar
[DEBUG] detected module ui.clipboard, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-ui.jar
[DEBUG] detected module ui.android, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-ui.jar
[DEBUG] detected module ui.iphone, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-ui.jar
[DEBUG] detected module ui.activityindicator, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-ui.jar
[DEBUG] detected module geolocation, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-geolocation.jar
[DEBUG] detected module yahoo, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-yahoo.jar
[DEBUG] detected module network, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-network.jar
[DEBUG] detected module xml, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-xml.jar
[DEBUG] detected module utils, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-utils.jar
[DEBUG] detected module titanium.stream, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/titanium.jar
[DEBUG] detected module titanium, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/titanium.jar
[DEBUG] detected module kroll, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/titanium.jar
[DEBUG] detected module titanium.codec, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/titanium.jar
[DEBUG] detected module accelerometer, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-accelerometer.jar
[DEBUG] detected module facebook, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-facebook.jar
[DEBUG] detected module network.socket, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-network.jar
[DEBUG] detected module contacts, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-contacts.jar
[DEBUG] detected module app.android, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-app.jar
[DEBUG] detected module app.properties, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-app.jar
[DEBUG] detected module android.notificationmanager, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-android.jar
[DEBUG] detected module gesture, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-gesture.jar
[DEBUG] detected module map, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-map.jar
[DEBUG] detected module platform, path = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-platform.jar
[INFO] Compiling Javascript Resources ...
[DEBUG] Processing Android resource drawables
[DEBUG] Detecting modules in /Users/egomez/Documents/Titanium Studio Workspace/T10800/modules
[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules
[DEBUG] Detected module for android: com.codeboxed.imagegallery 0.1 @ /Library/Application Support/Titanium/modules/android/com.codeboxed.imagegallery/0.1
[DEBUG] Detected module for android: com.mwaysolutions.barcode 0.2 @ /Library/Application Support/Titanium/modules/android/com.mwaysolutions.barcode/0.2
[DEBUG] Detected module for android: ti.barcode 1.0 @ /Library/Application Support/Titanium/modules/android/ti.barcode/1.0
[DEBUG] Detected module for android: ti.barcode 1.1 @ /Library/Application Support/Titanium/modules/android/ti.barcode/1.1
[DEBUG] Detected module for android: ti.omniture 1.0 @ /Library/Application Support/Titanium/modules/android/ti.omniture/1.0
[DEBUG] Detected module for android: ti.paypal 1.1 @ /Library/Application Support/Titanium/modules/android/ti.paypal/1.1
[DEBUG] Detected module for android: ti.paypal 1.2 @ /Library/Application Support/Titanium/modules/android/ti.paypal/1.2
[DEBUG] Detected module for android: ti.paypal 1.3 @ /Library/Application Support/Titanium/modules/android/ti.paypal/1.3
[DEBUG] Detected module for android: ti.styledlabel 1.0 @ /Library/Application Support/Titanium/modules/android/ti.styledlabel/1.0
[DEBUG] Detected module for android: ti.urbanairship 1.3 @ /Library/Application Support/Titanium/modules/android/ti.urbanairship/1.3
[DEBUG] Detected module for iphone: com.badanimation 0.1 @ /Library/Application Support/Titanium/modules/iphone/com.badanimation/0.1
[DEBUG] Detected module for iphone: com.bestfitmobile.sound 0.1 @ /Library/Application Support/Titanium/modules/iphone/com.bestfitmobile.sound/0.1
[DEBUG] Detected module for iphone: com.test 0.1 @ /Library/Application Support/Titanium/modules/iphone/com.test/0.1
[DEBUG] Detected module for iphone: com.udid 0.1 @ /Library/Application Support/Titanium/modules/iphone/com.udid/0.1
[DEBUG] Detected module for iphone: info.rborn.modtest 0.1 @ /Library/Application Support/Titanium/modules/iphone/info.rborn.modtest/0.1
[DEBUG] Detected module for iphone: ti.barcode 1.1 @ /Library/Application Support/Titanium/modules/iphone/ti.barcode/1.1
[DEBUG] Detected module for iphone: ti.barcode 1.2 @ /Library/Application Support/Titanium/modules/iphone/ti.barcode/1.2
[DEBUG] Detected module for iphone: ti.charts 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.charts/1.0
[DEBUG] Detected module for iphone: ti.compression 0.1 @ /Library/Application Support/Titanium/modules/iphone/ti.compression/0.1
[DEBUG] Detected module for iphone: ti.gamekit 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.gamekit/1.0
[DEBUG] Detected module for iphone: ti.omniture 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.omniture/1.0
[DEBUG] Detected module for iphone: ti.opengl 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.opengl/1.0
[DEBUG] Detected module for iphone: ti.quicklook 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.quicklook/1.0
[DEBUG] Detected module for iphone: ti.storekit 0.1 @ /Library/Application Support/Titanium/modules/iphone/ti.storekit/0.1
[DEBUG] Detected module for iphone: ti.storekit 1.1 @ /Library/Application Support/Titanium/modules/iphone/ti.storekit/1.1
[DEBUG] Detected module for iphone: ti.styledlabel 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.styledlabel/1.0
[DEBUG] Detected module for iphone: ti.tvout 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.tvout/1.0
[DEBUG] Detected module for iphone: ti.udid 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.udid/1.0
[DEBUG] Detected module for iphone: ti.urbanairship 1.0 @ /Library/Application Support/Titanium/modules/iphone/ti.urbanairship/1.0
[DEBUG] found drawable-long-land-hdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-long-land-hdpi/default.png
[DEBUG] found drawable-long-land-ldpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-long-land-ldpi/default.png
[DEBUG] found drawable-long-port-hdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-long-port-hdpi/default.png
[DEBUG] found drawable-long-port-ldpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-long-port-ldpi/default.png
[DEBUG] found drawable-notlong-land-hdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-land-hdpi/default.png
[DEBUG] found drawable-notlong-land-ldpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-land-ldpi/default.png
[DEBUG] found drawable-notlong-land-mdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-land-mdpi/default.png
[DEBUG] found drawable-notlong-port-hdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-port-hdpi/default.png
[DEBUG] found drawable-notlong-port-ldpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-port-ldpi/default.png
[DEBUG] found drawable-notlong-port-mdpi splash screen at /Users/egomez/Documents/Titanium Studio Workspace/T10800/Resources/android/images/res-notlong-port-mdpi/default.png
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/ApplicationStylesheet.java to javac build list
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/R.java to javac build list
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800Activity.java to javac build list
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800AppInfo.java to javac build list
[DEBUG] adding /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800Application.java to javac build list
[DEBUG] Building Java Sources: "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/ApplicationStylesheet.java" "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/R.java" "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800Activity.java" "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800AppInfo.java" "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/T10800Application.java"
[DEBUG] javac -encoding utf8 -classpath "/Users/egomez/Documents/android-sdk-mac_x86/platforms/android-7/android.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-ui.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-map.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-database.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-app.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-media.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-accelerometer.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-calendar.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-locale.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-gesture.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-platform.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/android-support-v4.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/ti-commons-codec-1.3.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-filesystem.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-facebook.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/smalljs.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-yahoo.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-api.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/titanium.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-utils.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-contacts.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-analytics.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-network.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-json.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-geolocation.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-xml.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/modules/titanium-android.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/jaxen-1.1.1.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/lib/titanium-verify.jar:/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111021183017/android/lib/titanium-debug.jar" -d "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/bin/classes" -proc:none -sourcepath "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/src" -sourcepath "/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen" @/var/folders/14/dk2hb8ls4pxd7fnblv4grxqh0000gn/T/tmpM2TmSr
[ERROR] Error(s) compiling generated Java code
[ERROR] /Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/R.java:14: expected
public static final int 1button_28e24fe765=0x7f020000;
^
/Users/egomez/Documents/Titanium Studio Workspace/T10800/build/android/gen/com/appc/testx/R.java:14: expected
public static final int 1button_28e24fe765=0x7f020000;
^
2 errors
{noformat}
Work around
Do not use numbers on images names for density folders - Quite smarter, uh?
Additional info
If this is something because of design we could just add a note to warn our users in our Wiki document.
Associated HD ticket
APP-661243
issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Android Emulator: Android SDK version: 2.2
This is an Android/Java issue where the resource names are converted to identifiers in a class (R.java) and java doesn't allow identifiers to start with number.
Closing ticket as the issue here is not our bug.