I've a class Testendride
:
public Testendride guranteBoneses;
set the values on response
JSONObject jsonObject = new JSONObject(s);
Gson gc = new Gson();
guranteBoneses = gc.fromJson(s, Testendride.class);
I'd like to send this Testendride
object to the next Activity
Intent intent = new Intent(ActivityGuaranteeBonesesOffers.this, ActivityDetailGaurantee.class);
intent.putExtra("gurantee","gurantee");
intent.putExtras("key", guranteBoneses);
startActivity(intent);