Questions tagged as 'gson'

1
answer

Convert JSON to Class

Friends like I could Convert a Json into Class: My Class is the created class to which I must adapt the Json that returns authorizationResponse.getResponse () miClase token = gson.fromJson(autorizationResponse.getResponse(),miClase.class);...
asked by 16.11.2018 / 15:27
0
answers

Send json, gson via KSoap on Android

It happens that I am trying to send what has a Json file to a WebService made in C #, I have to send it the string that contains the Json file from android, what I have to send in this case is the "saved" variable that the I think so from a Shar...
asked by 17.05.2018 / 07:49
1
answer

FromJson Gson error

I am trying to download a JSON for later, using the GSON library, parsing it using the respective java class Answer.class: I try to download the JSON from the link: String link=" link "; I am using the following syntax in the activity.class afte...
asked by 11.03.2018 / 02:36
0
answers

Send Gson (JSON) using HttpURLConnection

I am trying to send the data in JSON from android (client) to a PHP server that will only save this data in the database and send a 1 or a 0 depending on the success or failure of the INSERT operation. . I read that there is a library calle...
asked by 02.11.2017 / 20:48
2
answers

Why are the records shown null? [closed]

Good morning have colleagues, I would like to know if anyone has any idea why the records are shown null. My JSON has data which are the following. This is the script I'm using to perform the internal SQLite database public s...
asked by 15.03.2017 / 19:16
0
answers

Retrofit, does not show the list of cities when looking in the dialog of the floating action button

Well, that, I have implemented an application with 3 tabs and I want to update all the tabs when clicking when it shows the cities in the dialogue, the fact is that it does not even show me the cities, I do not know what I'm doing wrong. My a...
asked by 08.12.2016 / 17:48
1
answer

How to save a shopping cart in Android Studio?

I am designing a shopping cart on android, and I would like to know how to store the data it stores. or what ideas can you give me to save this data in a database. Because if I only save the variables, only enter the last element shown...
asked by 14.05.2018 / 03:03
1
answer

Fragment Volley

Why this code works properly for me if it is an activity and if it is a fragment, it does not give me errors or show me anything, is it just the progressbar? class FragJornadaActual1 : Fragment() { val TAG = "json_request" val URL = "...
asked by 17.01.2018 / 10:32
1
answer

Read JSON with Gson in Java

I'm trying to read a JSON file with the following structure, I need to get "one" and "three" { "images": [ { "classifiers": [ { "classifier_id": "id",...
asked by 21.02.2018 / 20:41
1
answer

Add element to array Json with Gson

This is my Json file: [{"nombre":"Activo","valor": 8500},{"nombre":"Pasivo","valor":500000}] And I want to add another object to the last position of that array using Gson, I try the following: public void add(Cuenta cuenta) throws IOExce...
asked by 28.04.2017 / 05:32