-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: Android 2.0
-
Fix Version/s: None
-
Component/s: Android SDK
-
Tags:
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