Skip to main content

Playing Audio in Android: The MediaPlayer Class

  • Chapter
  • First Online:
Learn Android App Development
  • 7561 Accesses

Abstract

In this chapter, we will take the digital audio assets that we optimized in the previous chapter and teach you how to implement them for playback in your Hello_World AttackPlanet.java Activity event handling code.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    1Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

    http://developer.android.com/reference/android/media/MediaPlayer.html .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Wallace Jackson

About this chapter

Cite this chapter

Jackson, W. (2013). Playing Audio in Android: The MediaPlayer Class. In: Learn Android App Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5747-9_14

Download citation

Publish with us

Policies and ethics