Skip to content

Instantly share code, notes, and snippets.

@Amokrane
Created May 3, 2012 01:25
Show Gist options
  • Save Amokrane/2582407 to your computer and use it in GitHub Desktop.
Save Amokrane/2582407 to your computer and use it in GitHub Desktop.
Parcelable
Intent intent = new Intent(MainScreen.this, TabbedView.class);
Bundle bundle = new Bundle();
bundle.putParcelableArray(HEADLINES_FOR_SPORT_EXTRA, existingSportHeadlines.get(selectedSportName));
bundle.putParcelableArray(SCORES_FOR_SPORT_EXTRA, existingSportScores.get(selectedSportName));
bundle.putParcelableArray(SCHEDULE_FOR_SPORT_EXTRA, existingSportSchedule.get(selectedSportName));
intent.putExtras(bundle);
intent.putExtra(SPORT_NAME_EXTRA, selectedSportName);
startActivity(intent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment