search

Home  >  Q&A  >  body text

java - 安卓获取一个网站数据出现问题,但是其他网站可以正常获取,这是为什么

怪我咯怪我咯2786 days ago538

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 13:37:04

    To call Handler in a thread, you need to call Looper first. For details, see Toast and Looper. Handler message loop mechanism.

    reply
    0
  • 阿神

    阿神2017-04-17 13:37:04

    Add Looper.prepare()

    reply
    0
  • 阿神

    阿神2017-04-17 13:37:04

    Handler is not the handler in the main thread, so you need to create the looper object yourself!

    reply
    0
  • Cancelreply