O'Reilly logo

Android™ for Programmers: An App-Driven Approach by Michael Morgano, Abbey Deitel, Harvey M. Deitel, Paul J. Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Favorite Twitter® Searches App: SharedPreferences, Buttons, Nested Layouts, Intents AlertDialogs, Inflating XML Layouts and the Manifest File

Image

Objectives

In this chapter you’ll:

• Enable users to interact with an app via Buttons.

• Use a ScrollView to display objects that do not fit on the screen.

• Create GUI components dynamically in response to user interactions by inflating an XML layout.

• Store key/value pairs of data associated with an app using SharedPreferences.

• Modify key/value pairs of data associated with an app using SharedPreferences.Editor.

• Use an AlertDialog.Builder object to create AlertDialogs.

• Programmatically open a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required