- [Instructor] Now that we have added a click listener…to the reciper adapter, we will need to add logic…to recipe activity to open the actual recipe.…Go RecipeActivity.…First, we will need to find the views…to display the title and the description.…In the onCreate function, after you do setContentView,…do TextView, and then titleView = (TextView),…in a cast, meaning in parentheses.…
findViewById, with the id R.id.title.…Press Cmd+D to duplicate this line.…Change the titleView to be descriptionView,…and the id to be R.id.description.…Next, we will need to retrieve the recipe from the store.…First, we will create a store.…RecipeStore store, _store_ = new RecipeStore,…with a context, which is this, the activity,…and the directory "recipes".…
Next, we will retrieve from the store…the id that got passed in.…So what we need to get the id out of the intent first.…String id = getIntent().getStringExtra,…and we will need the key,…which is what we have defined it in line 12.…KEY_ID.…Once again, it is good practice to use a constant…
- Why test?
- Local vs. on-device
- Code coverage
- UI testing
- Hermetic environment
- Dependency injection
- Testing with MVP
Skill Level Intermediate
1. Testing Considerations
2. Test as You Go
3. UI Testing
4. Hermetic Environment
5. Robot Pattern
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.