[AC-2211] Android: Ti.UI.createImageView will not load large JPG
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-02-05T23:56:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Pete Berry |
Assignee | Shak Hossain |
Created | 2013-01-09T13:26:58.000+0000 |
Updated | 2016-03-08T07:41:12.000+0000 |
Description
*Problem description*
Large and small files display fine on the Android emulator. Small files display fine on an Android device. Large files will not display on the Android device.
*Note*
The attached file displays fine on the Android Emulator but not the Android Galaxy Nexus or Nexus 7: MyPicture.jpg is 3264x2248, 2.33 MB.
*Test case*
var win1 = Ti.UI.createWindow({
backgroundColor : 'blue'
});
var TheImage = Ti.UI.createImageView({
image : '/images/MyPicture.jpg'
});
win1.add(TheImage);
win1.open();
Attachments
File | Date | Size |
---|---|---|
MyPicture.jpg | 2013-01-09T13:26:58.000+0000 | 2448160 |
MyPictureSmall.jpg | 2013-02-08T19:25:35.000+0000 | 55998 |
What TiSDK version are using? I tested with TiSDK 3.0.0.GA on android 4.1.1 and its working fine. Please provide the TiSDK version?
This was originally tested on TiSDK 3.0.0.GA and it DID NOT WORK. Seriously, honestly, I have witnesses! Best I can see nothing has changed on my development system, phone or tablet, but now it works fine! I tested all the way back to 2.1.0.GA. Very frustrating!!!! Thanks for looking into this... Must be your magic fingers ;-) Cheers, Pete
Further testing has shown that the problem can be reproduced on the Android Emulator with the following code:
Place the attached pictures in the directory "/sdcard/DCIM" then run the app and select "MyPictureSmall" from the gallery. Notice that shows on the screen. Running the app again, this time selecting "MyPicture", this one will not be displayed! Please not that this was tested with TiSDK 3.0.2.v20130117100201 and 3.0.0.GA. Thank you, Pete
Hello, We have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. We tested this issue with your test code using the latest 3.1.3 GA. We can’t reproduce this issue in Ti SDK 3.1.3GA. It is most likely fixed. Please test your issue using the latest release and let us know your feedback. If we don't hear back, we will assume the issue is no longer valid and close it. *Testing Environment:* OS: MAC OS X 10.8.5 Ti SDK: 3.1.3GA Ti CLI: 3.3.0 Android SDK 2.3.3, 4.2.2 Android Device Thanks