Chapter 4

Defining an App’s Behavior

IN THIS CHAPTER

check Interacting with users through notifications

check Ensuring that data remains safe and user accessible

check Working with various kinds of data

check Accessing special device features

The best app in the world would be unnoticeable except for the service it provides. When you can focus completely on the task at hand and not even notice the app that is helping you perform that task, you have a really great app. The problem is that most apps don’t come close to this ideal because they’re actually quite intrusive. They shout, “Here I am. Aren’t I truly amazing?” Even a well-behaved app does need to provide notifications at times, but those notifications should come only when they’re welcome and expected. This chapter shows you effective ways to work with notifications, permissions, and preferences — three of the cornerstones of great app behavior.

Apps can perform a lot of work for you or help you perform the work yourself, but most of that work somehow involves data. Many users don’t actually consider how much data they interact with daily, but ...

Get Android Application Development All-in-One For Dummies, 3rd Edition 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.