Introduction: The Xcode templates are not available in Cordova-2.0.0 or above, so we'll use the previous version, 1.9.0 for this recipe.

Similar documents
Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Getting Started with Android Development

Introduction to Android Development

POOSL IDE Installation Manual

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Building Mobile Applications Creating ios applications with jquery Mobile, PhoneGap, and Drupal 7

Installing the Android SDK

Adobe Summit 2015 Lab 712: Building Mobile Apps: A PhoneGap Enterprise Introduction for Developers

About this Release. Introduction. Prerequisites. Installation. Using the Web SDK Packager

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

DEPLOYING A VISUAL BASIC.NET APPLICATION

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

Beginning with SubclipseSVN

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

Colligo Manager 5.1. User Guide

Fahim Uddin 1. Java SDK

Getting Started with Vision 6

Installing Oracle 12c Enterprise on Windows 7 64-Bit

Colligo Manager 6.0. Connected Mode - User Guide

Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source

Software Development Environment. Installation Guide

Managing Contacts in Outlook

Changing Your Cameleon Server IP

Operational Decision Manager Worklight Integration

Android Setup Phase 2

KeePass Getting Started on Windows

Generate Android App

Outlook 2007: Managing your mailbox

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

Tutorial JavaScript: Switching panels using a radio button

Getting Started with WebEx Access Anywhere

Colligo Manager 6.0. Offline Mode - User Guide

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

TUTORIAL ECLIPSE CLASSIC VERSION: ON SETTING UP OPENERP 6.1 SOURCE CODE UNDER WINDOWS PLATFORM. by Pir Khurram Rashdi

unisys ClearPath eportal Developer 6.1 Unisys Multi-Device App Developer s Guide March

Access 2010: The Navigation Pane

Browsing and working with your files and folder is easy with Windows 7 s new look Windows Explorer.

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

Android Development Setup [Revision Date: 02/16/11]

Android Environment SDK

Industrial Security Facilities Database (ISFD) Troubleshooting Tips

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

Colligo Contributor File Manager 4.6. User Guide

Outlook Web App User Guide

Quick Start Guide Mobile Entrée 4

Reduced Quality Sample

IT Quick Reference Guides Using Windows 7

Getting Started Guide. Chapter 14 Customizing LibreOffice

Adobe Summit 2015 Lab 718: Managing Mobile Apps: A PhoneGap Enterprise Introduction for Marketers

Virtual Owl. Guide for Windows. University Information Technology Services. Training, Outreach, Learning Technologies & Video Production

Colligo Manager 6.2. Offline Mode - User Guide

SQL Server 2005: Report Builder

PTC Integrity Eclipse and IBM Rational Development Platform Guide

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

Android Programming: Installation, Setup, and Getting Started

VPN Remote Access Installation and Configuration Guide Operating System: Windows (XP, Vista, 7 and 8)

How to Configure Windows 8.1 to run ereports on IE11

How to Create an Android Application using Eclipse on Windows 7

Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010

User Guide for Windows 10

Application Development Setup Guide

Software Installation Requirements

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

MANAGING OUTLOOK PERSONAL DATA FILES

OUTLOOK 2007 USER GUIDE

UP L18 Enhanced MDM and Updated Protection Hands-On Lab

Cloud Tools Reference Guide. Version: GA

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

Viewing and Troubleshooting Perfmon Logs

How to Mail Merge PDF Documents

Backing up IMail Server using Altaro Backup FS

Akin Gump Strauss Hauer & Feld LLP Remote Access Resources

WebEx Remote Access User s Guide

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

Magaya Software Installation Guide

WinSCP: Secure File Transfer Using WinSCP for Secure File Transfer on Windows

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Adobe Dreamweaver CC 14 Tutorial

ANDROID GUEST GUIDE. Remote Support & Management PC Tablet - Smartphone. 1. An Introduction. Host module on your PC or device

POOSL IDE User Manual

Virtual Office Remote Installation Guide

Install the Production Treasury Root Certificate (Vista / Win 7)

For Introduction to Java Programming, 5E By Y. Daniel Liang

About SharePoint Server 2007 My Sites

Microsoft Office Access 2007 which I refer to as Access throughout this book

Akin Gump Strauss Hauer & Feld LLP Remote Access Resources (DUO)

VMware Horizon FLEX User Guide

Practice Fusion API Client Installation Guide for Windows

NetBeans IDE Field Guide

Create a Web Service from a Java Bean Test a Web Service using a generated test client and the Web Services Explorer

Files Used in this Tutorial

Using the Eclipse Data Tools Platform with SQL Anywhere 10. A whitepaper from Sybase ianywhere

Setting up Sudoku example on Android Studio

Most of your tasks in Windows XP will involve working with information

Transcription:

Tutorial Learning Objectives: After completing this lab, you should be able to learn about: Learn how to use Xcode with PhoneGap and jquery mobile to develop iphone Cordova applications. Learn how to use Eclipse to develop Android Cordova applications Introduction: The Xcode templates are not available in Cordova-2.0.0 or above, so we'll use the previous version, 1.9.0 for this recipe. 1. Let's now create a new project in Xcode. Click on Create a new Xcode project from the startup screen, or under the File New New Project menu item. 2. Select Cordova-based application from the available project templates, available under ios Application and click on Next to proceed, as shown in the following screenshot: 3. You will then be asked to enter in a name for the project and the Company Identifier. Make the name a unique descriptive of the application. The company identifier will create a unique Bundle Identifier. 4. Uncheck the Use Automatic Reference Counting option and click on Next to proceed: Workshop prepared by M.Chick @copyright 2013 1 st Edition 1

5. Select a directory on your filesystem into which the PhoneGap project will live. Click on Create to complete the project wizard: 6. Click on the Run button situated at the top left of Xcode to build and run the application. Alternatively, you can select Product Run from the main menu or use the keyboard shortcut combination of command + R. 7. You will receive an error message stating ERROR: Start Page at 'www/index.html' was not found. This is expected, and has actually helped us out. The project has created the required index.html and the www directory for using a default template. We now just need to include the directory into the project. 8. Highlight the root of the project and right-click to access the context menu (or Ctrl + click) and select Add Files To " your project name ": Workshop prepared by M.Chick @copyright 2013 1 st Edition 2

9. A dialog window will open. Expand the project directory to find the generated www folder. Select this folder directly as we only want to import that. Select Create folder references for any added folders and click on Add to continue: Workshop prepared by M.Chick @copyright 2013 1 st Edition 3

10. You can now see the referenced www directory in the project navigation window on the lefthand side in Xcode, as shown in the following screenshot: 11. Select Run to launch the application once more, which should now load the application using the default index.html file generated by Cordova in the ios Simulator: Workshop prepared by M.Chick @copyright 2013 1 st Edition 4

Create a responsive navigation bar on an iphone Workshop prepared by M.Chick @copyright 2013 1 st Edition 5

Workshop prepared by M.Chick @copyright 2013 1 st Edition 6

Workshop prepared by M.Chick @copyright 2013 1 st Edition 7

Create a simple application using phonegap, CSS, JavaScript and JQuery Workshop prepared by M.Chick @copyright 2013 1 st Edition 8

Create a simple tip calculator using phonegap and jquery 1. Launch Xcode, then under the File menu select New Project... 2. Navigate to the "User Templates" section, select PhoneGap, then in the right pane, select PhoneGap-based Application 3. Select the Choose... button, name your project and choose the location where you want the new project to be 4. Modify the index.html like this and copy jquery-1.6.2.min.js files to that directory, www. Workshop prepared by M.Chick @copyright 2013 1 st Edition 9

5. Choose Build and Run. Note: Simulate gestures in the iphone Simulator by using Shift while holding Option to lock the two "fingers" positions relative to each other. Rotate your simulated iphone: To rotate your iphone, choose Hardware > Rotate Left, or Hardware > Rotate Right from the menu. Pinch-to-zoom Gestures: You can simulate the iphones 'pinch to zoom' gesture by holding down the Option key while clicking and dragging with your mouse. This brings up a pair of dots that represent your fingertips. Workshop prepared by M.Chick @copyright 2013 1 st Edition 10

Create a jquery mobile application with phonegap, database and map Workshop prepared by M.Chick @copyright 2013 1 st Edition 11

Use Eclipse to develop Android Cordova applications Workshop prepared by M.Chick @copyright 2013 1 st Edition 12

How to install phonegap 1.9.0 on Xcode 1. Navigate to the directory where you extracted the PhoneGap files, and browse to the libs/ios/ folder. Double-click on the Cordova-1.9.0.dmg package installer: 2. The installer will launch the installation wizard. Follow the short steps to install PhoneGap for ios 3. Once the installation process has completed, you will have a PhoneGap project template available to use in Xcode, which really helps to streamline your application development. Workshop prepared by M.Chick @copyright 2013 1 st Edition 13

How to install Applaud Plugin and configure phonegap on Eclipse 1. Download Eclipse standard edition from http://www.eclipse.org/downloads 2. Download the Android SDK from http://developer.android.com/sdk/index.html 3. Install Eclipse plugin. 4. Open up the Eclipse IDE and select Help Install New Software from the main menu, as shown in the following screenshot: 5. Click on the Add button at the top-right corner to open up the install wizard window. 6. Type ADT Plugin as the name for the new repository, and add the following URL for the plugin location: https://dl-ssl.google.com/ android/eclipse/. Click on OK to add the repository to the available software sites. Workshop prepared by M.Chick @copyright 2013 1 st Edition 14

7. Accept the license agreements that accompany the tools to be downloaded. If you're feeling adventurous you may wish to read them first. Click on Finish to begin the installation procedure. 8. When the installation has finished, restart Eclipse to complete the process. 9. Having restarted Eclipse, select the Preferences menu and select the Android option. Use the Browse button to set the location of the Android SDK files 10. Apply any changes made to the preferences to complete this step. 11. Select Help Install New Software from the main menu in Eclipse and add a new plugin repository. Set the name to AppLaud Plugin and the location to: http://svn.codespot.com/a/eclipselabs.org/mobile-web-development-withphonegap/tags/r1.2/download. 12. Click on OK to add the repository to the available software sites, as shown in the following screenshot: 13. Select the entire MDS AppLaud library and click on Next to proceed 14. Agree to the plugin license and click on Finish to begin the installation. You will need to restart Eclipse to complete the procedure. 15. Once Eclipse has restarted, select File New Project Project from the main menu, and select PhoneGap for Android Project. You can also find this option within the Phonegap Wizards folder: Workshop prepared by M.Chick @copyright 2013 1 st Edition 15

16. The project creation wizard will open a new window, and provide you with a series of options to make project creation easier. You can choose to use a version of the Cordova framework included within the plugin, which currently includes 1.4.1, 1.5.0, 1.6.0, and 1.9.0 respectively. 17. Click on Next to proceed. Enter a name for your project and select the desired project location, or accept the default location provided by Eclipse: Workshop prepared by M.Chick @copyright 2013 1 st Edition 16

18. Choose an SDK build target and click on Next to proceed. 19. Enter a unique reverse-domain package name for your application and choose the minimum SDK version. Click on Finish to complete the project wizard: 20. When you run the application on a device, the output should look something like the following screenshot: Workshop prepared by M.Chick @copyright 2013 1 st Edition 17