we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "android intent data as jsonobject"
Samuel
30 Aug 2020
1  if(getIntent().hasExtra("json")) { 
2       JsonObject mJsonObject = new JsonObject(getIntent().getStringExtra("json"));
3    }
Ariadna
21 Jan 2020
1Intent intent = new Intent(getActivity(), MainActivity.class);
2                intent.putExtra("json", jsonObject.toString());
3                startActivity(intent);
4