官术网_书友最值得收藏!

Introduction

Like any other development, the first and foremost thing which is required, before we embark on our journey, is setting up the right environment so that the development, deployment, and testing becomes easy and effective. Moreover, this calls for a list of tools which are appropriate in this context. In this chapter, we will cover the topics related to setting up the environment using the right set of tools. Sencha Touch works on Android, iOS, and Blackberry platforms. For each of these platforms, we will see what steps we need to follow to set up the complete development and deployment environment. We will be packaging our Sencha Touch-based application using PhoneGap. PhoneGap is another JavaScript framework which provides the following two important capabilities:

  1. The APIs needed to access the device features such as camera, address book, and so on.
  2. A build mechanism for writing the code once (in the form of JS, HTML, CSS) and packaging them for different platforms such as iOS, Android, and so on.

Throughout the book, we will be using the following software:

  • Sun JDK Version 1.5 or above
  • Eclipse 3.3 or above
  • PhoneGap 1.0.0
  • Sencha Touch 1.1.0 library
  • Android SDK
  • ADT Plugin
  • XCode 4
  • Blackberry SDK

Before we get any further, you should download and install the following, which will act as a common base for all our discussions:

  • Sun JDK 1.5 or above
  • Eclipse 3.3 or above
  • Sencha Touch 1.1.0 library

After downloading the Sencha Touch library, extract it to a folder, say c:\sencha-touch. When you extract the folder, you would see the folders as shown in the following screenshot:

Introduction

There are many files, however, which are not required for development and testing.

Note

The docs folder contains the documentation for the library and is very handy when it comes to referring to the properties, configs, methods, and events supported by different classes. You may want to copy it to a different folder, so that you can refer to the documentation whenever needed.

Delete the files and folders which are enclosed within the rectangles as shown in the following screenshot:

Introduction

This prepares us to get started. As Sencha Touch is a JavaScript library, you may want to configure your Eclipse installation for JavaScript development. You may install the Spket plug-in and configure it for Sencha Touch development. Steps to do so are detailed on the Spket website (http://spket.com/) and hence have been excluded from this book.

主站蜘蛛池模板: 泸水县| 民权县| 临夏市| 桐乡市| 隆安县| 平塘县| 湖北省| 汤阴县| 潜山县| 抚宁县| 临夏市| 蕉岭县| 广平县| 江永县| 江陵县| 肥乡县| 淮滨县| 平乡县| 阿勒泰市| 会昌县| 黔东| 闽清县| 册亨县| 建湖县| 湟源县| 桦南县| 遂平县| 延边| 陆川县| 宝兴县| 勐海县| 绥宁县| 宁南县| 天津市| 皮山县| 陕西省| 安阳市| 繁昌县| 阳城县| 南汇区| 鹤峰县|