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

Android: Emulator: Map.Annotation.leftButton: missing image resource crashes app on launch

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.0.2, Release 2.1.0, Release 2.0.1
    • Fix Version/s: Release 3.0.2
    • Component/s: Android
    • Environment:

      Description

      If Map.Annotation.leftButton image resource does not exist, app will force close/crash on launch when run on emulator.

      This is not a regression.

      This does not occur on Android devices.

      This does not occur in the iOS Simulator.

      Steps to Reproduce:

      1. Run code:

      var win = Ti.UI.createWindow({
          backgroundColor: 'black',
          layout:'vertical'
      });
       
      var b = Ti.UI.createButton({
          title: "change annotation"
      });
       
      b.addEventListener('click', function() {
          alert("click! annotation.title = " + mountainView.title);
          mountainView.title = "Found it!";
          mountainView.subtitle = "Works!";
      });
       
      win.add(b);
        
      var mountainView = Titanium.Map.createAnnotation({
          latitude:37.390749,
          longitude:-122.081651,
          title:"Appcelerator Headquarters",
          subtitle:'Mountain View, CA',
          pincolor:Titanium.Map.ANNOTATION_RED,
          animate:true,
          leftButton: '../images/appcelerator_small.png',
          myid:1
      });
        
      var mapview = Ti.Map.createView({
          mapType: Titanium.Map.STANDARD_TYPE,
          region: {latitude:37.390749, longitude:-122.081651, 
                   latitudeDelta:0.01, longitudeDelta:0.01},
          annotations: [mountainView]
      });
       
      win.add(mapview);
        
      win.open();
      

      Actual Result:

      Force Close dialog/crash.

      Expected Result:

      The app should load. A window should open. There should be a vertical layout with a button on the top and a map on the bottom.

        Attachments

          Activity

            People

            • Assignee:
              jithinv@exalture.com jithinpv
              Reporter:
              dhyde Dustin Hyde
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code