Esempio n. 1
0
 public static Intent getIntent(Context context, NYTimesStory story) {
   Intent intent = new Intent(context, DetailsActivity.class);
   intent.putExtra(KEY_STORY_ID, story.getUrl());
   return intent;
 }
Esempio n. 2
0
 public void showStory(NYTimesStory story) {
   toolbar.setTitle(story.getTitle());
   detailsView.setText(story.getStoryAbstract());
   dateView.setText(story.getPublishedDate());
 }