Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de88dba1 authored by Nick Pelly's avatar Nick Pelly
Browse files

Clarify docs for the thread used in BroadcastReceiver.onReceive()

Change-Id: Ib6c0da5d0ca2fc95b26b230b306f205a9942cf03
parent c81ec363
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -446,8 +446,12 @@ public abstract class BroadcastReceiver {
    /**
     * This method is called when the BroadcastReceiver is receiving an Intent
     * broadcast.  During this time you can use the other methods on
     * BroadcastReceiver to view/modify the current result values.  The function
     * is normally called within the main thread of its process, so you should
     * BroadcastReceiver to view/modify the current result values.  This method
     * is always called within the main thread of its process, unless you
     * explicitly asked for it to be scheduled on a different thread using
     * {@link android.content.Context#registerReceiver(BroadcastReceiver,
     * IntentFilter, String, android.os.Handler)}. When it runs on the main
     * thread you should
     * never perform long-running operations in it (there is a timeout of
     * 10 seconds that the system allows before considering the receiver to
     * be blocked and a candidate to be killed). You cannot launch a popup dialog