: Sarah Allen, Vidal Graupera, Lee Lundrigan
: Pro Smartphone Cross-Platform Development iPhone, Blackberry, Windows Mobile and Android Development and Distribution
: Apress
: 9781430228691
: 1
: CHF 32.80
:
: Programmiersprachen
: English
: 288
: Wasserzeichen/DRM
: PC/MAC/eReader/Tablet
: PDF
Learn the theory behind cross-platform development, and put the theory into practice with code using the invaluable information presented in this book. With in-depth coverage of development and distribution techniques for iPhone, BlackBerry, Windows Mobile, and Android, you'll learn the native approach to working with each of these platforms. With detailed coverage of emerging frameworks like PhoneGap and Rhomobile, you'll learn the art of creating applications that will run across all devices. You'll also be introduced to the code-signing process and the distribution of applications through the major application stores, including Research In Motion (BlackBerry), Apple, and Microsoft.

Sarah Allen is a serial innovator with a history of developing leading-edge products, such as After Effects, Shockwave, Flash video, OpenLaszlo and Laszlo Webtop. She has a habit of recognizing great and timely ideas, finding herself amidst a talented team, and creating compelling software. She is now an independent consultant developing mobile and web applications. Sarah has been developing commercial software since 1990. She began focusing on Internet software as an engineer on Macromedia's Shockwave team in 1995. She led the development of the Shockwave Multiuser Server, and later the Flash Media Server, introducing streaming video and multi-party communication in Flash Player 6. She has also developed software tools for multimedia, digital video, and graphic arts at Adobe, Aldus, and The Company of Science and Art (After Effects). She was named one of the top 25 women of the web by SF Wow (San Francisco Women of the Web) in 1998.
Title Page 1
Copyright Page2
Contents at a Glance4
Table of Contents5
Foreword10
About the Authors12
About the Technical Reviewer13
Acknowledgments14
Introduction15
Part 1: Platform Development and Distribution15
Part 2: Cross-Platform Native Frameworks16
Part 3: HTML Interfaces16
Chapter 1 The Smartphone is the New PC 17
Application Marketplace18
Increase in Mobile Usage and Trend Toward Smartphones18
What is a Smartphone?20
Smartphone Landscape20
Cross-Platform Frameworks21
The Branded Experience of Mobile Applications22
Cross-Platform Development25
Web Techniques26
Cross-Platform Frameworks26
About this Book29
Part I Platform Development and Distribution 31
Chapter 2 iPhone32
Introducing Xcode32
iPhone Development Standard Practices33
Building a Simple iPhone app33
Create the Xcode Project34
Create the Interface35
Add UI Elements36
Align the Text Greeting37
Button and Text Field Layout37
Writing the Controller Code38
Connect the Code to the Views40
Skinning an iPhone Web View41
Installing the App on the Device44
Using the Development Provisioning Assistant44
Manually Setting Up iPhone Provisioning45
Finding Your Device ID46
Create the Provisioning Profile47
Install the Provisioning Profile47
Install and Run on the Device47
Chapter 3 Android49
Android Development50
Setting Up The Development Environment With Eclipse50
Building a Simple Android Application53
Simple Application Using Android WebView60
Building for an Android Device62
Distribution on the Web64
Android Market64
Chapter 4 BlackBerry65
BlackBerry Platform65
Set Up for Classic Java Development66
Building a Simple BlackBerry Application67
Create the Eclipse Project67
Create the Interface69
Code Explained71
Build and Test the Application72
Simple User Interface Application Using a Label, Text Field, and Button72
Code Explained74
Simple Application Using BlackBerry Browser Field75
Building for a BlackBerry Device76
Over the Air (OTA) Distribution77
BlackBerry App World77
Chapter 5 Windows Mobile79
Setting Up for Windows Mobile 6.5 Development80
Building a Simple Windows Mobile App81
Creating a Smart Device Project81
Setting Up Base Functionality82
Add a Button to the View83
Customize the Button84
Create a Click Event Handler85
Deploying and Test your Application86
Fleshing Out the Application87
Embed a Web View in your Application89
Create an HTML page89
Add a WebBrowser Control89
Load HTML in WebBrowser control90
Packaging and Distributing Your App90
Adding a CAB Project to the Solution91
Customizing Your Product Name91
Adding the Application to the CAB Project92
Creating an Application Shortcut92
Adding a Registry Entry92
Building and Deploying the CAB File92
Installing the CAB File93
Distributing Your Application94
Part 2 Cross-Platform Native Frameworks95
Chapter 6 Rhodes96
Development Architecture97
Runtime Architecture98
Device Capabilities and Native UI Elements99
Database (Rhom)99
Threading100
Differences Between Rhodes and Rails101
Creating a Rhodes App101
Installation and Setup101
Building a Rhodes Application102
Running the Application104
Running on the iPhone106
Running on Android107
Running on BlackBerry107
Running on Windows Mobile 6108
Generating a Model108
Debugging Tips113
iPhone113
BlackBerry114
Android114
Rhodes Device Capabilities114
Contacts Example116
Camera Example119
Geolocation and Mapping Example121
Creating the application122
Chapter 7 RhoSync125
How the Sync Server Works126
Data Storage: Why Triples?126
RhoSync Source Adapters127
Initialize128
Authenticating with Web S