Chapter 23: Supporting Different Versions of Android, Sound Effects, and Spinner Widget
In this chapter, we will learn how we can detect and handle different versions of Android. We will then be able to study the SoundPool class and the different ways we use it depending on the Android version of the device the app is running on. At this point, we can then put everything we have learned into producing a cool sound demo app, which will also introduce us to a new UI widget, Spinner.
In summary, in this chapter we will cover the following:
- Learning how to handle different versions of Android
- Learning how to use the Android
SoundPoolclass - Coding a sound-based app also using the
SpinnerViewwidget
Let's get started.