示例#1
0
 /**
  * Initialize the current thread as a looper, marking it as an application's main looper. The main
  * looper for your application is created by the Android environment, so you should never need to
  * call this function yourself. {@link #prepare()}
  */
 public static final void prepareMainLooper() {
   prepare();
   setMainLooper(myLooper());
   if (Process.supportsProcesses()) {
     myLooper().mQueue.mQuitAllowed = false;
   }
 }