IT. Expert System.

Android Reference

HandlerThread


android.os

Class HandlerThread

  • All Implemented Interfaces:
    Runnable


    public class HandlerThread
    extends Thread
    Handy class for starting a new thread that has a looper. The looper can then be used to create handler classes. Note that start() must still be called.
    • Constructor Detail

      • HandlerThread

        public HandlerThread(String name)
      • HandlerThread

        public HandlerThread(String name,
                     int priority)
        Constructs a HandlerThread.
        Parameters:
        name -
        priority - The priority to run the thread at. The value supplied must be from Process and not from java.lang.Thread.
    • Method Detail

      • onLooperPrepared

        protected void onLooperPrepared()
        Call back method that can be explicitly overridden if needed to execute some setup before Looper loops.
      • run

        public void run()
        Description copied from class: Thread
        Calls the run() method of the Runnable object the receiver holds. If no Runnable is set, does nothing.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
        See Also:
        Thread.start()
      • getLooper

        public Looper getLooper()
        This method returns the Looper associated with this thread. If this thread not been started or for any reason is isAlive() returns false, this method will return null. If this thread has been started, this method will block until the looper has been initialized.
        Returns:
        The looper.
      • quit

        public boolean quit()
        Ask the currently running looper to quit. If the thread has not been started or has finished (that is if getLooper() returns null), then false is returned. Otherwise the looper is asked to quit and true is returned.
      • getThreadId

        public int getThreadId()
        Returns the identifier of this thread. See Process.myTid().


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 26 / 158780173. Delta: 0.03817 с