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 fed to a gremlin, after midnight.

Use Large Heap Unnecessarily

The preview of this section is en route to Mars.

Misuse the MENU Button

The preview of this section was last seen in the Bermuda Triangle.

Interfere with Navigation

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

Use android:sharedUserId

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

Implement a “Quit” Button

The preview of this section was abducted by space aliens.

Terminate Your Process

The preview of this section is off trying to sweet-talk the Khaleesi into providing us with a dragon.

Try to Hide from the User

The preview of this section was the victim of a MITM ('Martian in the middle') attack.

Use Multiple Processes

The preview of this section was lost due to a rupture in the space-time continuum.

Hog System Resources

The preview of this section is unavailable right now, but if you leave your name and number at the sound of the tone, it might get back to you (BEEEEEEEEEEEEP!).