- Let's write an idling resource together.…I have prepared a project for you in the exercise files.…Download it, and import it into Android Studio.…It doesn't matter where you put it,…but I put mine under projects, idling.…If it asks you to upgrade Gradle,…say, Don't remind me again.…Press Command + O to open MainActivity.…
The easiest way to understand this app is to run it.…Press the green triangle to run the app.…Select your device, and press OK.…It shows a loading dialog,…then displays Done in the text view.…If you look at MainActivity, you can see…that in onCreate on line 18…it shows a loading dialog fragment.…
Command + click on it.…When the dialog is created on line 21,…it sends a message to a handler…to dismiss itself in three seconds.…The three seconds is specified in the delay variable,…which is defined on line 15.…In the same project, there is a test.…Press Command + O to open MainActivityTest.…
On line 23, it tries to verify that the text view…is displaying the string, done.…However, this test fails.…We will take a look at that next.…
- Incoming and outgoing intents
- How intents are used
- Dependency injection
- Why extract dependencies?
- Mockito and Dagger
Skill Level Advanced
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Effective Android Testing for Mobile Developerswith Chiu-Ki Chan2h 56m Intermediate
2. Hermetic Test Environment
- 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.