万本电子书0元读

万本电子书0元读

顶部广告

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Jason Kneen

出  版  社:Packt Publishing

出版时间:2015-11-30

字       数:130.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Over 100 recipes to help you develop cross-platform, native applications in JavaScript About 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 format Who This Book Is For This 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 databases In Detail The 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 approach This 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.
目录展开

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部