From the course: Writing Secure Code for Android by Infosec

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Activity: Handling exceptions, logging and printing, part 1

Activity: Handling exceptions, logging and printing, part 1

From the course: Writing Secure Code for Android by Infosec

Activity: Handling exceptions, logging and printing, part 1

- [Instructor] Exception Handling, Printing, and Logging. Activity, handling exceptions, logging and printing. If you go into your course files, into course seven, into Handling Errors, Logging and Printing, we not only have the app, but we also have a snippets file. And you can see here that we have several snippets and we will use them in just a moment. So, go ahead and open an existing project and browse for that app and start it up. ErrorsLoggingPrinting. (computer mouse clicking) This is an under the hood app, meaning that there's no interactive stuff for a user. And you'll see what we mean by that in just a moment when we compile it. Or you can sneak a peek and look into Res and look in layout if you want, and look in the activity main. The only thing we really need here is to import Android util log. Otherwise we use the usual stuff here. I talk about how exception handling lets you create an app that can resolve or handle exceptions because there'll be plenty of times where if…

Contents