The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.


Anti-Patterns

Much of this book has been focused on what you should do. In contrast, this chapter is focused on what you should not do.

All platforms have their anti-patterns: things that are technically possible but are not in the best interests of the users of that platform. Android is no exception. Some anti-patterns are simply annoying to users, while other anti-patterns can significantly infringe upon a user’s use of their Android device, or even the user’s freedom.

Much as the Hippocratic Oath directs doctors to “first, do no harm”, Android application developers owe it to the users of their apps to avoid these anti-patterns to the greatest extent possible.

Prerequisites

This chapter assumes that you have read much of the book, particularly the core chapters.

Leak Threads… Or Things Attached to Threads

The preview of this section was lost in the sofa cushions.

Use Large Heap Unnecessarily

The preview of this section was traded for a bag of magic beans.

Misuse the MENU Button

The preview of this section was stepped on by Godzilla.

Interfere with Navigation

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.

Use android:sharedUserId

The preview of this section was lost in the sofa cushions.

Implement a “Quit” Button

The preview of this section left for Hollywood to appear in a reality TV show.

Terminate Your Process

The preview of this section is in the process of being translated from its native Klingon.

Try to Hide from the User

The preview of this section took that left turn at Albuquerque.

Use Multiple Processes

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.

Hog System Resources

The preview of this section was whisked away by a shark-infested tornado.