... right parenthesis semicolon. Line 229, indented 3 times. right brace. Line 230, indented 3 times. else left brace. Line 231, indented 4 times. forward slash forward slash display message indicating that system does not allow printing. Line 232, indented 4 times. Toast message equals Toast period make Text left parenthesis get Context left parenthesis right parenthesis comma Line 233, indented 5 times. R period string period message underscore error underscore printing comma Toast period LENGTH underscore SHORT right parenthesis semicolon. Line 234, indented 4 times. message period set Gravity left parenthesis Gravity period CENTER comma message period get X Offset left parenthesis right parenthesis forward slash 2 comma Line 235, indented 5 times

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.