Created
June 12, 2012 14:52
-
-
Save Gowiem/2917996 to your computer and use it in GitHub Desktop.
Send data in bundle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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