12. Slideshow App: Gallery and Media Library Access, Built-In Content Providers, MediaPlayer
, Image Transitions, Custom ListActivity
Layouts and the View-Holder Pattern
Objectives
In this chapter you’ll:
• Use Intents
and content providers to allow the user to select pictures and music from a device’s Gallery and media library, respectively.
• Launch Intents
that return results.
• Use a MediaPlayer
to play music from the device’s media library during the slideshow.
• Customize a ListActivity
’s layout.
• Use the view holder pattern to improve performance when using complex ListView
-item layouts.
• Create a custom GUI for an AlertDialog
to allow ...
Get Android™ for Programmers: An App-Driven Approach 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.