... switch chooses appropriate action based on which feature. Line 223, indented twice. forward slash forward slash requested permission. Line 224, indented twice. switch left parenthesis request Code right parenthesis left brace. Line 225, indented 3 times. case SAVE underscore IMAGE underscore PERMISSION underscore REQUEST underscore CODE colon. Line 226, indented 4 times. if left parenthesis grant Results left bracket 0 right bracket equals equals Package Manager period PERMISSION underscore GRANTED right parenthesis. Line 227, indented 5 times. doodle View period save Image left parenthesis right parenthesis semicolon forward slash forward slash save the image. Line 228, indented 4. times. return semicolon. Line 229, indented twice. right brace.
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.