Titanium JIRA Archive
Appcelerator Community (AC)

[AC-758] Android: cannot find image resource

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-09-30T06:34:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterMarcus Ilgner
AssigneeShak Hossain
Created2015-09-04T12:28:14.000+0000
Updated2016-03-08T07:37:01.000+0000

Description

A TiUISlider is configured via .tss to have a thumbImage with the value "/images/Progressbar_Empty.png". When starting the app, it complains
[ERROR] TiUISlider: (main) [221,1106] Unable to locate thumb image for progress bar: file:///android_asset/Resources/images/Progressbar_Empty.png
The .apk contains a file "/assets/Resources/images/Progressbar_Empty.png" (case maintained from original everywhere). There is no folder android_asset anywhere so this must either be handled by some class loader or similar mechanism - or that compiled-in path is just plain wrong. When building the project using TiShadow, the image is loaded and shown correctly. This is reproducible across two machines and persists even after cleaning and completely rebuilding the project a couple of times.

Comments

  1. Rakhi Mitro 2015-09-06

    Hello, I tested the issue you reported. I can't reproduce it as a bug. I tested this using the studio build: 4.1.1.201507141126,Titanium SDK Version:4.1.0.GA,Appcelerator Command-Line Interface, version 4.1.2,alloy 1.7.6 and Node.js Version 0.10.20, Android Device: Nexus 7(5.1.1). I recommend you upgrade SDK to the latest build and let us know if you get the error again. Please include a proper test case and steps to reproduce. Thanks
  2. Marcus Ilgner 2015-09-30

    Thanks for the feedback. I'm not sure when we'll get around to checking out the latest build but I'll give it a try.

JSON Source