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

  • Sencha Touch Cookbook
  • Ajit Kumar
  • 403字
  • 2021-08-20 15:56:05

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.

主站蜘蛛池模板: 新巴尔虎右旗| 闻喜县| 突泉县| 丽水市| 普兰店市| 青州市| 永靖县| 电白县| 杭锦后旗| 井陉县| 新宁县| 崇明县| 蒲江县| 南靖县| 大荔县| 宁远县| 佛山市| 淮安市| 元氏县| 文安县| 乌恰县| 永丰县| 罗定市| 寿阳县| 灵寿县| 松潘县| 项城市| 永嘉县| 安达市| 新绛县| 琼结县| 化德县| 遵义市| 客服| 黄山市| 玉屏| 德安县| 平谷区| 额尔古纳市| 新平| 商水县|