Chapter 23. Supporting Different Versions of Android, Sound Effects, and the Spinner Widget

In this chapter, we will learn about 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 can use it depending on the Android version the app is running on. At this point, we can then put everything we have learned into producing cool sound demo apps, which will also introduce us to a new UI widget – the Spinner.

In summary, in this chapter, we will cover the following topics:

  • How to handle different versions of Android
  • How to use the Android SoundPool class
  • Coding a sound-based app by using SpinnerView

Let's get started.

Handling different versions of Android

Most of the time throughout ...

Get Android Programming for Beginners - Second Edition 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.