不能把http请求写在主线程里,改为这样

        Runnable runnable = new Runnable() {
            public void run() {
                HttpClient.post2("Notification posted 通知标题: " + "通知内容:");
            }
        };
        new Thread(runnable).start();

 

相关文章:

  • 2022-12-23
  • 2021-04-02
  • 2021-07-06
  • 2021-07-30
  • 2021-10-11
  • 2022-12-23
猜你喜欢
  • 2021-10-31
  • 2022-12-23
  • 2021-05-24
  • 2021-05-26
  • 2022-12-23
  • 2021-10-11
  • 2021-12-26
相关资源
相似解决方案