售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Appcelerator Titanium Smartphone App Development Cookbook Second Edition
Table of Contents
Appcelerator Titanium Smartphone App Development Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Building Apps Using Native UI Components
Introduction
Building with windows and views
Getting ready
How to do it...
How it works…
Adding a tabgroup to your app
How to do it...
How it works...
There's more...
Creating and formatting labels
How to do it...
How it works...
Creating textfields for user input
How to do it...
How it works...
There's more...
Retrieving text
Experimenting with other textfield border styles
Working with keyboards and keyboard toolbars
Getting started
How to do it...
How it works...
There's more
Experimenting with keyboard styles
Enhancing your app with sliders and switches
How to do it...
How it works...
There's more…
Passing custom variables between windows
How to do it...
How it works…
There's more...
Creating buttons and capturing click events
How to do it...
How it works...
Informing your users with dialogs and alerts
How to do it…
How it works...
There's more...
Creating charts using Raphael JS
Getting ready
How to do it...
How it works...
Creating an actionbar in Android
How to do it...
How it works...
2. Working with Local and Remote Data Sources
Introduction
Prerequisites
Reading data from remote XML via HTTPClient
Getting ready
How to do it...
How it works…
Displaying data using a TableView
How to do it...
How it works...
Enhancing your TableViews with custom rows
How to do it...
How it works...
Filtering the TableView using a SearchBar component
How to do it...
How it works...
Speeding up your remote data access with Yahoo YQL and JSON
How to do it...
How it works...
Creating a SQLite database
How to do it...
How it works...
There's more...
Attaching a prepopulated database file
Saving data locally using a SQLite database
How to do it...
How it works...
There's more…
Retrieving data from a SQLite database
How to do it...
How it works...
Creating a "Pull to Refresh" mechanism in iOS
How to do it...
How it works...
3. Integrating Maps and GPS
Introduction
Adding a MapView to your application
Getting ready
How to do it...
How it works…
There's more...
Changing your MapView's style
Getting your current position using GeoLocation
How to do it...
How it works…
Converting addresses to latitude and longitude locations
How to do it...
How it works…
Adding annotations to your MapView
How to do it...
How it works...
Customizing annotations and adding events to your MapView
How to do it...
How it works...
Drawing routes on your MapView
How to do it...
How it works...
Monitoring your heading using the device compass
How to do it...
How it works...
4. Enhancing Your Apps with Audio, Video, and Cameras
Introduction
Choosing your capture device using an OptionDialog modal
Getting ready
How to do it...
How it works…
Capturing photos from the camera
How to do it...
How it works…
Choosing existing photos from the photo library
How to do it...
How it works…
There's more
Understanding media types
Save to photos
Displaying photos using ScrollableView
How to do it...
How it works…
Saving your captured photo to the device filesystem
How to do it...
How it works…
Capturing and playing audio via the audio recorder
How to do it...
How it works…
Capturing video via the video recorder
How to do it...
How it works…
Playing video files from the filesystem
How to do it...
How it works…
There's more…
Safely deleting saved files from the filesystem
How to do it...
How it works…
There's more
5. Connecting Your Apps to Social Media and E-mail
Introduction
Composing and sending e-mails
Getting ready
How to do it...
How it works…
There's more
Adding attachments to an e-mail
How to do it...
How it works...
Setting up a custom Facebook application
How to do it...
Integrating Facebook into your Titanium app
How to do it...
How it works...
Posting to your Facebook wall
How to do it...
How it works…
Posting to Twitter in iOS
How to do it...
How it works...
Posting to Facebook in iOS
How to do it...
How it works…
Sharing on Android using Intents
How to do it…
How it works…
6. Getting to Grips with Properties and Events
Introduction
When should you use app properties?
What object types can be stored as app properties?
Reading and writing app properties
Getting ready
How to do it…
How it works…
Firing and capturing events
How to do it…
How it works…
Passing event data between your app and a Webview using custom events
How to do it…
How it works…
There's more
7. Creating Animations, Transformations and Implementing Drag and Drop
Introduction
Animating a view using the Animate method
Getting ready
How to do it…
How it works…
Animating a view using 2D Matrix and 3D Matrix transformations
How to do it…
How it works…
Dragging an ImageView using touch events
How to do it…
How it works…
Scaling an ImageView using the slider control
How to do it…
How it works…
Saving our funny face using the toImage() method
How to do it…
How it works…
8. Interacting with Native Phone Applications and APIs
Introduction
Creating an Android options menu
Getting ready
How to do it…
How it works…
Accessing the contacts / address book
How to do it…
How it works…
Storing and retrieving data via the clipboard
How to do it…
How it works…
Creating a background service on an iPhone
How to do it…
How it works…
Updating data using background fetch
How to do it…
Displaying local notifications on an iPhone
How to do it…
How it works…
Displaying Android notifications using intents
How to do it…
How it works…
Storing your Android app on the device's SD card
How to do it…
How it works…
9. Integrating Your Apps with External Services
Introduction
Connecting to APIs that use basic authentication
Getting ready
How to do it…
How it works…
Fetching data from the Google places API
Getting ready
How to do it…
How it works…
Connecting to FourSquare using oAuth
Getting ready
How to do it…
How it works…
Posting a check-in to FourSquare
How to do it…
How it works…
Searching and retrieving data via Yahoo! YQL
How to do it…
How it works…
Integrating push notifications with Parse.com
Getting ready
How to do it…
How it works…
Testing push notifications using PHP and HTTP POST
How to do it…
How it works…
10. Extending Your Apps with Custom Modules
Introduction
Integrating an existing module – the PayPal mobile payment library
Getting ready
How to do it…
How it works…
There's more…
Preparing your iOS module development environment
How to do it...
How it works…
Developing a new iPhone module using XCode
Getting ready
How to do it…
How it works…
Creating a public API method
Getting ready…
How to do it…
How it works…
Packaging and testing your module using the test harness
How to do it…
How it works…
Packaging your module for distribution and sale!
How to do it…
How it works…
11. Platform Differences, Device Information, and Quirks
Introduction
Gathering information about your device
Getting ready
How to do it…
How it works…
Obtaining the device's screen dimensions
How to do it…
How it works…
Understanding device orientation modes
How to do it…
How it works…
Coding around the differences between the iOS and Android APIs
How to do it…
How it works…
Ensuring that your device can make phone calls
How to do it…
How it works…
12. Preparing Your App for Distribution and Getting It Published
Introduction
Joining the iOS developer program
How to do it…
Installing iOS developer certificates and provisioning profiles
How to do it...
Setting up your iOS developer certificate
Setting up your device
Creating your application provisioning profile
Building your application for iOS using studio
How to do it...
Building your application for development
Building your applications for distribution
Joining the Google Android developer program
How to do it…
Creating your application's distribution key
How to do it…
Building and submitting your app to the Google Play Store
How to do it…
13. Implementing and Using URL Schemes
Introduction
Detecting whether another iOS app is installed
Getting ready
How to do it...
How it works…
Launching another iOS app
How to do it...
How it works…
Passing parameters to other apps via a URL
How to do it...
How it works…
Launching Apple Maps and Google Maps with route directions
How to do it...
Opening URLs in Chrome for iOS
How to do it
Setting up your own apps to use URL schemes
How to do it...
How it works…
Receiving URL commands in your own app
How to do it…
How it works…
Transferring binary data between apps using a URL scheme
How to do it…
14. Introduction to Alloy MVC
Introduction
Installing Alloy and creating an Alloy project
How to do it...
Building views and windows
How to do it...
How it works…
Creating Buttons and Labels using Events
How to do it...
How it works…
Changing the look of your app with styles
How to do it…
How it works…
Working with Navigation and TabGroups
How to do it…
How it works…
Adding an Alloy widget to your application
How to do it…
How it works…
Creating your own Alloy widget
How to do it…
How it works…
Integrating data using models and collections
How to do it…
How it works…
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜