Appcelerator Titanium Smartphone App Development Cookbook - Second Edition
eBook - ePub

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition

  1. 368 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition

Book details
Book preview
Table of contents
Citations

About This Book

Over 100 recipes to help you develop cross-platform, native applications in JavaScriptAbout This Bookā€¢ Leverage your JavaScript skills to write mobile applications using Titanium Studio tools with the native advantageā€¢ Deploy your application on the App Store and Google Playā€¢ Add your own IOS native modules in objective-C, in an easy-to-follow step-by-step formatWho This Book Is ForThis book is an essential for any developer learning or using JavaScript who wants to write native UI applications for iOS and Android. No knowledge of Objective-C, Swift and Java is required and you'll quickly be developing native, cross-platform apps, in JavaScript!What You Will Learnā€¢ Transfer data between applications with URL schemes, and make your application accessible to other mobile applications and servicesā€¢ Connect with remote services using JSONā€¢ Work with Google Maps and Apple Maps, GPS and annotate routesā€¢ Create animations and special effectsā€¢ Integrate notifications and connect with social media services such as Facebook and Twitterā€¢ Build applications with Alloy MVC ā€“ a rapid application development frameworkā€¢ Design native APIs and use local databasesIn DetailThe mobile web has paved the way but many users want to have "native" applications installed. Using Appcelerator as a platform it's now possible to write iOS, Android, and Windows phone applications in JavaScript! It allows developers to develop fully native UI applications using Appcelerator studio tools without any knowledge of Objective-C, Swift or Java.This book will take you through the process of building cross-platform, native UI applications for the mobile from scratch. You will learn how to develop apps, how to use GPS, cameras and photos and how to build socially connected apps. You will also learn how to package them for submission to the App Store and Google Play.This cookbook takes a pragmatic approach to creating applications in JavaScript from putting together basic UIs, to handling events and implementation of third party services such as Twitter, Facebook and Push notifications. The book shows you how to integrate datasources and server APIs, and how to use local databases. The topics covered will guide you to use Appcelerator Studio tools for all the mobile features such as Geolocation, Accelerometer, animation and more. You'll also learn about Alloy, the Appcelerator MVC framework for rapid app development, and how to transfer data between applications using URLSchemes, enabling other developers to access and launch specific parts of your app.Finally, you will learn how to register developer accounts and publish your very own applications on the App Store and Google Play.Style and approachThis book offers a set of practical recipes with a step-by-step approach for building native applications for both the iOS and Android using JavaScript. This hands-on guide shows you exactly how to use the Appcelerator platform to rapidly develop cross-platform, native apps.

Frequently asked questions

Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781849697712
Edition
2

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 i...

Table of contents

  1. Appcelerator Titanium Smartphone App Development Cookbook Second Edition