O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Choosing your capture device using an OptionDialog modal

OptionDialog is a modal-only component that allows you to show one or more options to a user, usually along with a Cancel option, which closes the dialog. We are going to create this component and use it to present the user with the option of choosing an image from the camera or the device's photo library.

If you are intending to follow the entire chapter and build the Holiday Memories app, then pay careful attention to the Getting Ready section for this recipe, as it will guide you through setting up the project.

Getting ready

To prepare for this recipe, open Appcelerator Studio and log in if you have not already done so. If you need to register a new account, you can do it for free directly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required