Volley AppController class object returning null

前端 未结 4 1789
温柔的废话
温柔的废话 2021-01-19 12:46

I am making an app that makes a JsonObjectRequest and retrieves a JSON data from an URL using the Volley Networking Library for android.

AppCon

4条回答
  •  青春惊慌失措
    2021-01-19 13:09

    Your AppController class needs to extend Application class instead of the AppCompatActivity class.

    And remember to update your Manifest as well. ie. Add this class in your AndroidManifest.xml using name attribute for tag.

    
    

提交回复
热议问题