Questions tagged [android-json]

JSON stands for (Java Script Object Notation). It is a simple and light-weight data interchange format that can be easily read by humans and machines.Android includes the org.json library which allow working efficiently with JSON. This provides easy parsing of JSON data and creating JSON strings

577 questions
-1
votes
1 answer

How do i pass JSON data between 2 fragments?

I am retrieving my JSON as follows : myResponse.java : public List getData() { return data; } public void setData(List data) { this.data = data; } @Override public boolean equals(Object o) { …
-1
votes
1 answer

How To fetch data from json for slider

I am working on an image and text slider that shows images and text in slider using view pager. in this project text and images, the array is defined in the app itself. how can load these values from a JSON API?. instead of defining it i want to…
nas
  • 29
  • 5
-1
votes
2 answers

JSON parsing without array name or node in Android

I have a JSOn array without array name and I'm confused how to parse it and how to make JSONObject or JSONArray. If possible then please describe it. My JSON Array list…
Pradeep Sheoran
  • 493
  • 6
  • 15
-1
votes
1 answer

Screen freezes when downloading content from server in android

I am downloading JSON Content from server in the MainActivity and passing the JSON from MainActivity to ListActivity, the problem here is I have added a sleep time of 10s in the backend server i.e. Php from where the data is fetched. Since, the…
Abhishek
  • 1,008
  • 1
  • 16
  • 39
-1
votes
1 answer

Android JSON object fetch

I have a problem getting data from this api. I can request the first parts of the data but after the "quotes" I can not fetch the data and I need to fetch the price. JSON EXAMPLE { "data": { "1": { "id": 1, "name": "Bitcoin",…
NoobAndroid
  • 86
  • 4
  • 10
-1
votes
1 answer

How to get all changed items in android recyclerview adapter

I am using name and description in RecyclerView. But name and description has edittext where user can change the name,description and submit the entire fields. Now question is how to get the entire fields of all items in the recyclerview…
Shiv
  • 129
  • 3
  • 12
-1
votes
1 answer

Android correct String can not be converted into JSONObject

I have a response coming from the server. When I am trying to convert the String into JSON Object, I am getting an error Value { "StatusCode": "000", "FileURI":"https:///someurl/directory/filename" } of type java.lang.String cannot be converted to…
The Bat
  • 1,085
  • 1
  • 13
  • 31
-1
votes
2 answers

Part of JSON response from server is returning null: Android

I am trying to fetch data from the server and then display it into the app. I have JSON data…
devgeek
  • 418
  • 3
  • 13
-1
votes
2 answers

avoid parse json data in position two

I have a recyclerview like this: item 10 admob (item 9 has gone) item 8 item 7 item 6 ... I'm adding admob in position 2. It is what I want. The problem is to parse the data. I want to jump the position 2 when parse the data, like so: item…
RGS
  • 4,062
  • 4
  • 31
  • 67
-1
votes
1 answer

Error in Android Studio project

I have 2 activities: Feed and User. Both activities use same adapter, same layout, but in first activity adapter loads the Feed (and crashes), in the second activity adapter loads user's feed (not crashes). This what I found in console for…
HEISENBERG
  • 29
  • 1
  • 10
-1
votes
3 answers

I am facing some problems with json parsing

{"success":"true", "groups":[ { "groupId":"c20f2353-1f13-4ea0-8283-ghhjc4dcc725251b", "name":"hb", "description":"hjj", "image":null, "membersCount":1, "groupType":"chaddt", …
prsandroid
  • 88
  • 2
  • 10
-1
votes
4 answers

JSON response Using Volley in a recycler view in Android app

I am trying to print a json response response in a recyclerview. my Recyclerview is like a expanded listView. And my json resone is like this: {"Table1": [ {"filedate":"Oct 26, 2016"}, {"filedate":"Oct 18, 2016"} ], "Table2": [{…
-1
votes
3 answers

Why is Gson library giving me an Exception in JSON parsing?

Following is my Json array string that I am trying to…
vipul bansal
  • 65
  • 2
  • 9
-1
votes
1 answer

Android - Fetching Array with no name

I understand that what I'm fetching is already an array but still I'm not sure what to change here. I have this which is returning data fine but I'm not sure what to do with the array to get the values into the map. protected Void…
ChrisM
  • 706
  • 11
  • 30
-1
votes
1 answer

Value john of type java.lang.String cannot be converted to JSONObject

I try to build an android app that send a parameter to a php code as a where query condition in that php code, I should get in log.i the query result but I get the following error org.json.JSONException: Value john of type java.lang.String cannot…
JEREEF
  • 51
  • 8