Android HTTP Request AsyncTask

前端 未结 3 746
后悔当初
后悔当初 2020-12-03 12:59

I want to implement a class which will handle all HTTP Requests of my application, which will be basically:

  • Get a list of business (GET);
  • Execute a lo
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 13:38

    It appears that you are never actually starting the AsyncTask by calling the execute() function on the Get object.

    try this code:

    Get g = new Get();
    g.execute();
    

提交回复
热议问题