Android HandlerCallback.handlerMessage 归属线程
巴扎黑
巴扎黑 2017-04-17 13:10:02
0
1
766
巴扎黑
巴扎黑

reply all(1)
PHPzhong

The logic inside

1, Show and handleMessage is not in the main thread.
2. ImageSize=0 is output at other points because your Show has not yet called back and the image has not been downloaded.
3. When handleMessage is executed, the thread it is on is the thread where the new Handler() passed in when you Looper is located (you used HandlerThread), so in the entire logic of handleMessage, there is no other code. Possibility of main thread execution.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!