Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13072] Android: Images load many times

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2013-05-18T16:09:03.000+0000
Affected Version/sRelease 3.0.0, Release 3.0.2, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsexalture
Reporterlogioniz
AssigneeSunila
Created2013-02-07T09:32:30.000+0000
Updated2017-05-31T22:50:40.000+0000

Description

Create titanium single window application. Go to Resources-ui-common-FirstView.js and change line "var self = Ti.UI.createView();" to "var self = Ti.UI.createView({backgroundImage: '/android/default.png'});". Run application and in FastDev console have that image "default.png" loads 4 times.

Attachments

FileDateSize
FirstView.js2013-02-07T09:42:53.000+0000573
log.log2013-02-07T09:42:53.000+00001804

Comments

  1. Daniel Sefton 2013-03-15

    Tested on 3.0.2 GA, Android 4.1.2 emulator. Here's my log:
       [INFO] [2013-03-14 17:06:26,042] get ui/common/FirstView.js: ImagesLoadManyTimes/Resources/ui/common/FirstView.js
       [INFO] [2013-03-14 17:06:26,511] get android/default.png: ImagesLoadManyTimes/Resources/android/default.png
       [INFO] [2013-03-14 17:06:26,659] get android/default.png: ImagesLoadManyTimes/Resources/android/default.png
       [INFO] [2013-03-14 17:06:26,775] get android/default.png: ImagesLoadManyTimes/Resources/android/default.png
       [INFO] [2013-03-14 17:06:26,826] get android/default.png: ImagesLoadManyTimes/Resources/android/default.png
       
    The other thing I find odd is that specifying "/android/default.png" or "/iphone/Default.png" on iOS causes no image to be shown (only works with "Default.png"), yet on Android with these paths the image is shown.
  2. jithinpv 2013-04-23

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Android Emulator: Android SDK version: 2.2
  3. Sunila 2013-05-18

    The additional 3 are for selected, focused and disabled states. If images are not explicitly specified for these, the background image is used.
  4. Lee Morris 2017-05-31

    Closing ticket as invalid.

JSON Source