Most interaction with a message loop is through the Handler class. ... Returns the application's main looper, which lives in the main thread of the application.
developer.android.com