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

Android: In a module, using UI component method on callback from a broadcast receiver event causes crash

    Details

      Description

      App crashes when we create any UI component inside the eventFired from this particular module and trying to access UI component method after pressing back button and launching again.

      sample app and module code is attached.

      Steps:

      1: Launch the app in android any version (preferred is 4.2 or 2.2).
      2: click on Add device button.
      3: Click on red view add and an alert will be shown, click ok.
      4: press the back button, and app will go in background.
      5: launch the app again.
      6: Press the Add Device button again.
      7: App crashes.

      Another thing to try.

      1: Go to sample app's app.js at line number 71-72 and comment the view1 addEventListener.
      2: Launch the app again and now repeat the above process.
      3: app won't crash.

        Attachments

          Activity

            People

            • Assignee:
              jithinv@exalture.com jithinpv
              Reporter:
              anigam Ashish Nigam
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration