Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "We can include other contexts through the use of the include
directive."
A block of code is set as follows:
public class MainActivity extends ActionBarActivity { // Set up our Notification message ID int NOTIFICATION_ID = 001;
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:support-v4:20.0.+'
}
Any command-line input or output is written as follows:
$ ./adb forward tcp:4444 localabstract:/adb-hub $ ./adb connect localhost:4444
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Next, click on the Install packages button as shown in the preceding screenshot."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.