Misc Flashcards
1
Q
What is the syntax for using the Log class?
What are the levels of severity?
A
Log.i(“TAG - usually class name”, “error message”)
verbose debug info warning error wtf (what a terrible failure - an error that should never happen
ASSERT is another constant of the Log class, although there is no Log.a
2
Q
In what ways is using the Timber library superior to using the Log class?
A
Timber will:
- generate log tags based on your class names
- help you avoid showing logs in a release version of your app
- allow for integration with other crash-reporting libraries
3
Q
What are the steps to implement Timber? (2)
A
Add Timber dependency in build.gradle(Module)
‘com.jakewharton.timber:timber:4.7.1’
Override the Application class (extend and add to Manifest)
In ApplicationClass.onCreate( ), after the super, add:
Timber.plant(Timber.DebugTree( ))
4
Q
What does adb stand for?
A
Android Debug Bridge
5
Q
Which Codelab Task explains how to implement a Countdown Timer?
A
Codelab 5.4, task 4