I am new to Android, so the name of the question might not be correct. Basically, I get a price as a JSONObject response (this is happening in fragment).
public void onResponse(JSONObject response) {
try {
int price = response.getInt("price");
} catch (JSONException ex) {
}
}
Now, how can I pass the value of the price to another activity and set it as setText in a TextView in that particular activity?