android - Is it necessary to call Looper.prepare() from within the UI thread? -
if want implement handler object within activity's main thread, need call looper.prepare() beforehand, or activities have own internal loopers? same hold true if want instantiate handler instance within service?
the main thread has own looper. see context.getmainlooper()
. main thread encompasses activities , services in application.
Comments
Post a Comment