Platform-specific tools
There are many fundamental differences between Android and iOS. Android has the menu, iOS has a back button. Titanium respects this and has elements for individual operating systems.
For the final set of examples in this chapter, we will look at some of the platform-specific tools available in Titanium. It may seem incongruous to have platform-specific controls but it is an absolutely necessary part of the toolkit for creating native applications that embrace the identifying features of the platform. If it is a significant feature of an operating system that is not cross-platform it will be included in Titanium. A great example of this is the menu button on Android. It's a fundamental part of the Android design and something that the user will expect to be available yet there is no equivalent in iOS. Your Android app should make use of it.
Adding an Android menu
In the next example we will add an Android menu to our app.