Creating Mobile Apps with Appcelerator Titanium
上QQ阅读APP看书,第一时间看更新

Chapter 2. Sili, the assistant that just listens

In this chapter, we will be making our very own voice recorder application called Sili. While other popular applications interpret voice commands, this application simply listens by storing the recordings on the device. We will also provide the possibility of listening to previous recordings by selecting them from a list. We will cover user interface (UI) interactions of course, but we will also be covering media and filesystem interactions.

By the end of this chapter, you will have learned the following concepts:

  • Applying images to standard controls (such as buttons) to implement a "custom" look and feel
  • Recording audio and saving to the device
  • Interacting with the filesystem
  • Playing back an audio file
  • Deleting a specific table view row
Note

Titanium only supports audio recording on the iOS platform at this time. Therefore this project will be specifically built for an iPhone. Also, while all the interface interactions can be tested using the simulator, you will need a physical device in order to test the voice recording feature properly.