Skip to content

Instantly share code, notes, and snippets.

@Gowiem
Created June 12, 2012 14:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gowiem/2917996 to your computer and use it in GitHub Desktop.
Save Gowiem/2917996 to your computer and use it in GitHub Desktop.
Send data in bundle
Intent mPoiDetailIntent = new Intent(PoiListActivity.this, PoiDetailActivity.class);
mPoiDetailIntent.putExtra("POINT_OF_INTEREST", poiClicked);
startActivity(mPoiDetailIntent);
// Then in the activtity that is recieving, so the PoiDetailActivity.class:
Bundle b = getIntent().getExtras();
if(b != null){ // Activity started from PoiListActivity
mPointOfInterest = (PointOfInterest) b.getSerializable("POINT_OF_INTEREST");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment