A
A
Anton2016-03-30 20:29:06
Java
Anton, 2016-03-30 20:29:06

How to parse JSON URL in Android Studio (SDK version 23)?

I googled everything, but did not achieve even an elementary result - the output of an array in the log.
Did the following. Based on this answer: stackoverflow.com/a/10501619/5640806
Added public String getJSON. Compiled. Everything is fine.
Then I wrote this in onCreate: Caught an error: MainActivity.java:30: MainActivity.java:54: This is where it got stuck ... For the first time, such problems with JSON arose, it’s even a shame to write this here ... But I really hope for your detailed clarification.
String data = getJSON(url, 16);
d0ac91f2b9104f11b705839a2361d807.png
String data = getJSON(url, 16);
c.connect();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question