[TIMOB-5887] Map annotation with external left button raises exception on clicking
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-07-10T22:20:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | annotation, fastdev, mapview |
Reporter | Taazza GO |
Assignee | Ingo Muschenetz |
Created | 2011-10-27T03:25:25.000+0000 |
Updated | 2017-07-10T22:20:07.000+0000 |
Description
A map annotation created with an external left button raises a FileNotFoundException on clicking. Although an exception occurs, I can see the left image getting displayed.
This can be reproduced in KitchenSink->Views->Map View. In *Resources/examples/map_view.js*, at around line 33 we have:
var atlantaParams = {
latitude:33.74511,
longitude:-84.38993,
title:"Atlanta, GA",
subtitle:'Atlanta Braves Stadium\nfoo',
animate:true,
leftButton: '../images/atlanta.jpg',
rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,
myid:3 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS
};
*leftButton* is set to a local image here. Clicking on the Atlanta annotation works fine at this point. Now change *leftButton* to http://www.espncricinfo.com/favicon.png or http://facebook.com/favicon.ico or any other externally hosted PNG image. Now rebuild & click on the Atlanta annotation - you should see an exception being raised even though the left image was successfully displayed. This wasn't happening on 1.7.0 at least.
The logcat output corresponding to the exception is attached.
Attachments
File | Date | Size |
---|---|---|
map_trace.txt | 2011-10-27T03:25:25.000+0000 | 4341 |
The android 2.3 emulator has a number of bugs, could you please try this on the 2.2 emulator or on-device running 2.3?
I was able to reproduce the same behaviour on Android 2.2 emulator too.
stacktrace suggests this is FastDev related. Please try it on device as well.
Without FastDev enabled, this exception doesn't occur on the emulator. I don't see any issues on a device either.
Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.