Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-58

NuxeoContext - Blocking operation in UI thread

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: Android 2.0
    • Fix Version/s: None
    • Component/s: Android SDK

      Description

      The NuxeoContext class extends the android framework class BroadCastReceiver and thus implements the abstract method onReceive. The problem is that some of work done in this method contains calls to blocking operations, which leads to UI freeze. This is because the method onReceive is always called from the UI thread unless the receiver was registered with the method registerReceiver(BroadcastReceiver, IntentFilter, String, android.os.Handler). The problem comes more specifically from the method onConfigChanged()

      The system behavior is described at
      http://developer.android.com/reference/android/content/BroadcastReceiver.html#onReceive%28android.content.Context,%20android.content.Intent%29

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: