Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 12. Slideshow App: Gallery and Media Library Access, Built-In Conten...

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 a user to enter information,

  • Load images as Bitmaps using a BitmapFactory.

  • Use a TransitionDrawable to gradually transition between two BitmapDrawables that contain images.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial