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

Android: Activity Listening Broken on run-on-main-thread = true

    Details

    • Story Points:
      5
    • Sprint:
      2016 Sprint 17 SDK

      Description

      Tested with a Pixel on Android 8.0 using a wireless keyboard. Build the app and you will see the OS logs appear. When a wireless keyboard is connected to the device via bluetooth it causes the app to soft reset on Android. I used

      Ti.App._restart();
      

      because I've had problems with the soft reset holding things in memory.

      When

      <property name="run-on-main-thread" type="bool">false</property>
      

      the listener works correctly. The app restarts and runs 'Start by OS' and 'Resume by OS'.

      When

      <property name="run-on-main-thread" type="bool">true</property>
      

      the listener does not fire the 'START' & 'RESUME' activity listener after the reset. You will notice this by the lack of error logs.

        Attachments

        1. index.js
          2 kB
        2. index.xml
          0.2 kB
        3. tiapp.xml
          4 kB

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                josh.mocek josh.mocek
                Reviewer:
                Yordan Banev
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code