Chapter 17. Sound FX and Supporting Different Versions of Android
In this chapter, you will learn how to load and play sound effects (FX) on Android. As the sound part of the Android API has recently been updated, this is also a good opportunity to look at a strategy for supporting different versions of Android. Throughout the book, we have been writing apps that run on 95% of devices by default, but there are times when we want to support more devices. Also, it is useful to be able to future-proof our apps a bit when we know that the code we write will eventually not work on new devices. This chapter includes the following topics:
- How to code for different versions of Android in the same app
- How does the
SoundPool
class work - The sound FX mini app ...
Get Android Programming for Beginners 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.