Chapter 4. Tools

In this chapter, we’ll look at two interesting tools you can use to create an Android application.

Hack 18 Removing log statements before releasing: Android v1.6+

If your application is making requests to a server, you might be using some type of log to check whether or not your requests are successful. Unfortunately, those logs don’t get removed when you build the final APK (Android application package file). Removing logs is important to keep the logcat output as clean as possible. Leaving log statements in could also expose you to unintentional disclosure of sensitive information. In this hack, I’ll show you how easy it is to remove logs for your market release.

Developers have their own technique preferences for removing ...

Get 50 Android Hacks now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.