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, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Compilation of an Android static library requires a usual set of Android.mk
and Application.mk
files."
A block of code is set as follows:
std::string ExtractExtension( const std::string& FileName ) { size_t pos = FileName.find_last_of( '.' ); return ( pos == std::string::npos ) ? FileName : FileName.substr( pos ); }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
std::string ExtractExtension( const std::string& FileName )
{
size_t pos = FileName.find_last_of( '.' );
return ( pos == std::string::npos ) ?
FileName : FileName.substr( pos );
}
Any command-line input or output is written as follows:
>ndk-build >ant debug >adb install -r bin/App1-debug.apk
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: "Check the line Hello Android NDK! printed into the Android system log."