Set textview from json url android? : Hello so i am currently making an app that gets json data from url and i want to get the "points" from the json set to textView7. I have some code but i do not know if its correct. I want to be able to pull 2 diffrent from the url https://www.lurkinator.net/api/data?username=bobtheshoplifter_

 "points": 3, 
 "username": "bobtheshoplifter_"

I wanna set them both in the textView's i have

Here is how my text views look like [Image][1] Both the username and points are seperate and the string of the username is @string/userid and points @string/points


Thanks for the help!

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

        public class AddProfile extends Activity {
            // All xml labels

            TextView txtPoints;


            // Progress Dialog
            private ProgressDialog pDialog;

            // Profile json object
            JSONArray points;
            JSONObject hay;
            // Profile JSON url
            private static final String POINTS_URL = "https://www.lurkinator.net/api/data?username=bobtheshoplifter_";

            // ALL JSON node names
            private static final String TAG_POINTS = "points";


            @Override
            public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_main);

                txtPoints = (TextView) findViewById(R.id.textView7);

<!-- end snippet -->


  [1]: https://i.stack.imgur.com/vxoFI.png