Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5887

Map annotation with external left button raises exception on clicking

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Seen on Android 2.2. Tested using the following Titanium SDKs on Linux:

      Titanium Mobile version 1.7.4 - 10/19/11 13:06 (6d7aed0...)
      Titanium Mobile version 1.8.0 - 10/18/11 15:54 (974d575...)

      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:

      Resources/examples/map_view.js

      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

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              taazzago Taazza GO
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5004
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code