Ejemplo 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;
 }
Ejemplo n.º 2
0
 public void showStory(NYTimesStory story) {
   toolbar.setTitle(story.getTitle());
   detailsView.setText(story.getStoryAbstract());
   dateView.setText(story.getPublishedDate());
 }