You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/04/10 00:34:33 UTC
svn commit: r1466271 [13/41] - in /cordova/site: bin/ public/
public/docs/en/2.6.0/ public/docs/en/2.6.0/img/
public/docs/en/2.6.0/img/guide/
public/docs/en/2.6.0/img/guide/getting-started/
public/docs/en/2.6.0/img/guide/getting-started/android/ public...
Added: cordova/site/public/docs/en/2.6.0/guide_command-line_index.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/2.6.0/guide_command-line_index.md.html?rev=1466271&view=auto
==============================================================================
--- cordova/site/public/docs/en/2.6.0/guide_command-line_index.md.html (added)
+++ cordova/site/public/docs/en/2.6.0/guide_command-line_index.md.html Tue Apr 9 22:34:28 2013
@@ -0,0 +1,360 @@
+<!DOCTYPE html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+<meta name="generator" content="joDoc">
+<title>Apache Cordova API Documentation</title>
+<link rel="stylesheet" type="text/css" href="index.css">
+<link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+<link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+</head>
+<body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="2.6.0rc1">2.6.0rc1</option>
+<option selected value="2.6.0">2.6.0</option>
+<option value="2.5.0rc1">2.5.0rc1</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0rc1">2.4.0rc1</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0rc2">2.3.0rc2</option>
+<option value="2.3.0rc1">2.3.0rc1</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0rc2">2.2.0rc2</option>
+<option value="2.2.0rc1">2.2.0rc1</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0rc2">2.1.0rc2</option>
+<option value="2.1.0rc1">2.1.0rc1</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0rc1">2.0.0rc1</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0rc1">1.9.0rc1</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0rc1">1.8.0rc1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0rc1">1.7.0rc1</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0rc1">1.6.0rc1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0rc1">1.5.0rc1</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="Japanese" value="jp">
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="kr"><option value="2.0.0">2.0.0</option></optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Command-Line Usage</h1>
+ <small><select><option value="Command-Line%2520Usage">Command-Line Usage</option>
+<option value="Command-Line%20Usage_supported_platforms">Â Â Â Â Â Â - Supported Platforms</option>
+<option value="Command-Line%20Usage_windows_phone_8">Â Â Â Â Â Â - Windows Phone 8</option>
+<option value="Command-Line%20Usage_ios">Â Â Â Â Â Â - iOS</option>
+<option value="Command-Line%20Usage_android">Â Â Â Â Â Â - Android</option>
+<option value="Command-Line%20Usage_blackberry">Â Â Â Â Â Â - BlackBerry</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>API Reference</h1>
+<ul>
+<li><a href="cordova_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></li>
+<li><a href="cordova_camera_camera.md.html#Camera">Camera</a></li>
+<li><a href="cordova_media_capture_capture.md.html#Capture">Capture</a></li>
+<li><a href="cordova_compass_compass.md.html#Compass">Compass</a></li>
+<li><a href="cordova_connection_connection.md.html#Connection">Connection</a></li>
+<li><a href="cordova_contacts_contacts.md.html#Contacts">Contacts</a></li>
+<li><a href="cordova_device_device.md.html#Device">Device</a></li>
+<li><a href="cordova_events_events.md.html#Events">Events</a></li>
+<li><a href="cordova_file_file.md.html#File">File</a></li>
+<li><a href="cordova_geolocation_geolocation.md.html#Geolocation">Geolocation</a></li>
+<li><a href="cordova_globalization_globalization.md.html#Globalization">Globalization</a></li>
+<li><a href="cordova_inappbrowser_inappbrowser.md.html#InAppBrowser">InAppBrowser</a></li>
+<li><a href="cordova_media_media.md.html#Media">Media</a></li>
+<li><a href="cordova_notification_notification.md.html#Notification">Notification</a></li>
+<li><a href="cordova_splashscreen_splashscreen.md.html#Splashscreen">Splashscreen</a></li>
+<li><a href="cordova_storage_storage.md.html#Storage">Storage</a></li>
+</ul>
+<h1>Guides</h1>
+<ul>
+<li><a href="guide_getting-started_index.md.html#Getting%20Started%20Guides">Getting Started Guides</a></li>
+<li><a href="guide_command-line_index.md.html#Command-Line%20Usage">Command-Line Usage</a></li>
+<li><a href="guide_upgrading_index.md.html#Upgrading%20Guides">Upgrading Guides</a></li>
+<li><a href="guide_project-settings_index.md.html#Project%20Settings">Project Settings</a></li>
+<li><a href="guide_plugin-development_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_whitelist_index.md.html#Domain%20Whitelist%20Guide">Domain Whitelist Guide</a></li>
+<li><a href="guide_cordova-webview_index.md.html#Embedding%20WebView">Embedding WebView</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Command-Line%20Usage">Command-Line Usage</a></h1>
+
+<p>Cordova now ships with a set of command-line tools that make it easier
+for you to develop cross-platform applications. You can build, clean,
+and launch an emulator with a single command. You can consider these
+instructions as an alternative to the Getting Started guides. Whereas
+the Getting Started guides help you get setup with the default IDEs and
+tooling surrounding the platforms you are working with, the command-line
+tools aim to provide a shell-based approach to creating and working with
+Cordova projects.</p>
+
+<h2>
+<a name="Command-Line%20Usage_supported_platforms">Supported Platforms</a>
+</h2>
+
+<ul>
+<li><a href="#Command-Line%20Usage_ios">iOS</a></li>
+<li><a href="#Command-Line%20Usage_android">Android</a></li>
+<li><a href="#Command-Line%20Usage_blackberry">BlackBerry</a></li>
+<li><a href="#Command-Line%20Usage_wp8">Windows Phone 8</a></li>
+</ul>
+<h2>
+<a name="Command-Line%20Usage_windows_phone_8">Windows Phone 8</a>
+</h2>
+
+<p>The Windows Phone 8 command line tools support creating new projects.</p>
+
+<h3>Create a project</h3>
+
+<p>Run the <code>create</code> command with the following parameters:</p>
+
+<ul>
+<li>Path to your new Cordova WP8 project</li>
+<li>Package Name, following reverse-domain style convention ( this becomes the default Namespace )</li>
+<li>Project name</li>
+</ul>
+<!-- --><pre class="prettyprint"><code>$ ./path/to/cordova-wp8/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
+</code></pre>
+
+<h2>
+<a name="Command-Line%20Usage_ios">iOS</a>
+</h2>
+
+<p>The iOS command-line tools are built upon shell scripts and rely on
+Xcode command-line tools such as <code>xcode-select</code> and <code>xcodebuild</code>.</p>
+
+<h3>Create a project</h3>
+
+<p>Run the <code>create</code> command with the following parameters:</p>
+
+<ul>
+<li>Path to your new Cordova iOS project</li>
+<li>Package name, following reverse-domain style convention</li>
+<li>Project name</li>
+</ul>
+<!-- --><pre class="prettyprint"><code>$ ./path/to/cordova-ios/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
+</code></pre>
+
+<h3>Build a project</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/build
+</code></pre>
+
+<h3>Run app on emulator</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/run
+</code></pre>
+
+<h3>Releasing</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/release
+</code></pre>
+
+<h3>Logging</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/log
+</code></pre>
+
+<h2>
+<a name="Command-Line%20Usage_android">Android</a>
+</h2>
+
+<p>The Android command-line tools are built upon shell scripts. You <em>must</em>
+have the Android SDK's <code>tools</code> and <code>platform-tools</code> folders in your
+PATH!</p>
+
+<h3>Create a project</h3>
+
+<p>Run the <code>create</code> command with the following parameters:</p>
+
+<ul>
+<li>Path to your new Cordova Android project</li>
+<li>Package name, following reverse-domain style convention</li>
+<li>Main Activity name</li>
+</ul>
+<!-- --><pre class="prettyprint"><code>$ /path/to/cordova-android/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/cordova-android/bin/create.bat /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
+</code></pre>
+
+<h3>Build a project</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/build
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/build.bat
+</code></pre>
+
+<h3>Run app on emulator/device</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/run
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/run.bat
+</code></pre>
+
+<p>Make sure you have created at least one Android Virtual <a href="cordova_device_device.md.html#Device">Device</a>. If you did not it will ask you to create one with the <code>android</code> command.
+If you have multiple AVDs, it will prompt you to select an AVD.</p>
+
+<h3>Logging</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/log
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/log.bat
+</code></pre>
+
+<h3>Cleaning</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/clean
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/clean.bat
+</code></pre>
+
+<h3>Releasing</h3>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/release
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/release.bat
+</code></pre>
+
+<h2>
+<a name="Command-Line%20Usage_blackberry">BlackBerry</a>
+</h2>
+
+<p>The BlackBerry command-line tools are built upon shell scripts.</p>
+
+<h3>Create a project</h3>
+
+<p>Run the <code>create</code> command with the following parameters:</p>
+
+<ul>
+<li>Path to your new Cordova BlackBerry project</li>
+<li>Placeholder package name</li>
+<li>Application name</li>
+</ul>
+<!-- --><pre class="prettyprint"><code>$ /path/to/cordova-blackberry-webworks/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/cordova-blackberry-webworks/bin/create.bat /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
+</code></pre>
+
+<p>Note: the package name placeholder (com.example.cordova<em>project</em>name) is ignored on the Blackberry platform, but is required for use of the crossplatform tools</p>
+
+<h3>Build a project</h3>
+
+<p>For BlackBerry projects, please make sure you customize the
+<code>project.properties</code> file in the root of your Cordova project folder.
+This is necessary for things like supplying your BlackBerry signing key
+password, location of the BlackBerry WebWorks SDK, and location of
+BlackBerry simulator executables.</p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/build <platform>
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/build.bat <platform>
+</code></pre>
+
+<h3>Launch simulator</h3>
+
+<p>For BlackBerry projects, please make sure you customize the
+<code>project.properties</code> file in the root of your Cordova project folder.
+This is necessary for things like supplying your BlackBerry signing key
+password, location of the BlackBerry WebWorks SDK, and location of
+BlackBerry simulator executables.</p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/run <platform>
+</code></pre>
+
+<p>and then choose 'no' when prompted with: </p>
+
+<pre class="prettyprint"><code>Do you have a BlackBerry device connected to your computer? (y/n)
+</code></pre>
+
+<p>or, on <strong>Windows</strong></p>
+
+<pre class="prettyprint"><code>$ /path/to/my_new_cordova_project/cordova/run <platform>
+</code></pre>
+
+<p>and then choose 'no' when prompted with: </p>
+
+<pre class="prettyprint"><code>Do you have a BlackBerry device connected to your computer? (y/n)
+</code></pre>
+
+<h3>Logging</h3>
+
+<p>Unfortunately streaming logs directly from the device is not
+supported at this time. However, BlackBerry offers built-in Web
+Inspector support for Playbook and BlackBerry smartphone devices running
+BlackBerry OS 7.0 and above. Additionally, you can access your
+application's logs (including any calls to <code>console.log</code>) on your device
+by holding down the ALT key from the home screen and hitting "lglg"
+keys.</p>
+
+ </div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script><script type="text/javascript" src="prettify/prettify.js"></script>
+</body>
+</html>
Added: cordova/site/public/docs/en/2.6.0/guide_cordova-webview_android.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/2.6.0/guide_cordova-webview_android.md.html?rev=1466271&view=auto
==============================================================================
--- cordova/site/public/docs/en/2.6.0/guide_cordova-webview_android.md.html (added)
+++ cordova/site/public/docs/en/2.6.0/guide_cordova-webview_android.md.html Tue Apr 9 22:34:28 2013
@@ -0,0 +1,238 @@
+<!DOCTYPE html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+<meta name="generator" content="joDoc">
+<title>Apache Cordova API Documentation</title>
+<link rel="stylesheet" type="text/css" href="index.css">
+<link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+<link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+</head>
+<body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="2.6.0rc1">2.6.0rc1</option>
+<option selected value="2.6.0">2.6.0</option>
+<option value="2.5.0rc1">2.5.0rc1</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0rc1">2.4.0rc1</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0rc2">2.3.0rc2</option>
+<option value="2.3.0rc1">2.3.0rc1</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0rc2">2.2.0rc2</option>
+<option value="2.2.0rc1">2.2.0rc1</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0rc2">2.1.0rc2</option>
+<option value="2.1.0rc1">2.1.0rc1</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0rc1">2.0.0rc1</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0rc1">1.9.0rc1</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0rc1">1.8.0rc1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0rc1">1.7.0rc1</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0rc1">1.6.0rc1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0rc1">1.5.0rc1</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="Japanese" value="jp">
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="kr"><option value="2.0.0">2.0.0</option></optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Embedding Cordova WebView on Android</h1>
+ <small><select><option value="Embedding%2520Cordova%2520WebView%2520on%2520Android">Embedding Cordova WebView on Android</option>
+<option value="Embedding%20Cordova%20WebView%20on%20Android_prerequisites">Â Â Â Â Â Â - Prerequisites</option>
+<option value="Embedding%20Cordova%20WebView%20on%20Android_guide_to_using_cordovawebview_in_an_android_project">Â Â Â Â Â Â - Guide to using CordovaWebView in an Android Project</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>API Reference</h1>
+<ul>
+<li><a href="cordova_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></li>
+<li><a href="cordova_camera_camera.md.html#Camera">Camera</a></li>
+<li><a href="cordova_media_capture_capture.md.html#Capture">Capture</a></li>
+<li><a href="cordova_compass_compass.md.html#Compass">Compass</a></li>
+<li><a href="cordova_connection_connection.md.html#Connection">Connection</a></li>
+<li><a href="cordova_contacts_contacts.md.html#Contacts">Contacts</a></li>
+<li><a href="cordova_device_device.md.html#Device">Device</a></li>
+<li><a href="cordova_events_events.md.html#Events">Events</a></li>
+<li><a href="cordova_file_file.md.html#File">File</a></li>
+<li><a href="cordova_geolocation_geolocation.md.html#Geolocation">Geolocation</a></li>
+<li><a href="cordova_globalization_globalization.md.html#Globalization">Globalization</a></li>
+<li><a href="cordova_inappbrowser_inappbrowser.md.html#InAppBrowser">InAppBrowser</a></li>
+<li><a href="cordova_media_media.md.html#Media">Media</a></li>
+<li><a href="cordova_notification_notification.md.html#Notification">Notification</a></li>
+<li><a href="cordova_splashscreen_splashscreen.md.html#Splashscreen">Splashscreen</a></li>
+<li><a href="cordova_storage_storage.md.html#Storage">Storage</a></li>
+</ul>
+<h1>Guides</h1>
+<ul>
+<li><a href="guide_getting-started_index.md.html#Getting%20Started%20Guides">Getting Started Guides</a></li>
+<li><a href="guide_command-line_index.md.html#Command-Line%20Usage">Command-Line Usage</a></li>
+<li><a href="guide_upgrading_index.md.html#Upgrading%20Guides">Upgrading Guides</a></li>
+<li><a href="guide_project-settings_index.md.html#Project%20Settings">Project Settings</a></li>
+<li><a href="guide_plugin-development_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_whitelist_index.md.html#Domain%20Whitelist%20Guide">Domain Whitelist Guide</a></li>
+<li><a href="guide_cordova-webview_index.md.html#Embedding%20WebView">Embedding WebView</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Embedding%20Cordova%20WebView%20on%20Android">Embedding Cordova WebView on Android</a></h1>
+
+<p>Beginning in Cordova 1.9, with the assistance of the <code>CordovaActivity</code>, you can use Cordova as a component in a larger native Android application. This component is known in Android
+as the <code>CordovaWebView</code>. New Cordova-based applications from 1.9 onwards will be using the <code>CordovaWebView</code> as its main view, whether the legacy <code>DroidGap</code> approach is
+used or not.</p>
+
+<p>The prerequisites are the same as the prerequisites for Android application development. It is assumed that you are familiar with Android development. If not, please
+look at the Getting Started guide to developing a Cordova Application and start there before continuing with this approach. This is not the main approach used
+to author Android Cordova applications. Thus the instructions are currently manual. In the future, we may try to further automate project generation via this method.</p>
+
+<h2>
+<a name="Embedding%20Cordova%20WebView%20on%20Android_prerequisites">Prerequisites</a>
+</h2>
+
+<ol>
+<li>
+<strong>Cordova 1.9</strong> or greater</li>
+<li>Android SDK updated with 15</li>
+</ol>
+<h2>
+<a name="Embedding%20Cordova%20WebView%20on%20Android_guide_to_using_cordovawebview_in_an_android_project">Guide to using CordovaWebView in an Android Project</a>
+</h2>
+
+<ol>
+<li>Use <code>bin/create</code> to fetch the commons-codec-1.6.jar</li>
+<li>
+<code>cd</code> into <code>/framework</code> and run <code>ant jar</code> to build the cordova jar (it
+will create the .jar file in the form <code>cordova-x.x.x.jar</code> in the
+<code>/framework</code> folder)</li>
+<li>Copy the cordova jar into your Android project's <code>/libs</code> directory</li>
+<li>
+<p>Edit your application's <code>main.xml</code> file (under <code>/res/xml</code>) to look similar the following. The <code>layout_height</code>, <code>layout_width</code> and <code>id</code> can be modified to suit your application</p>
+
+<pre class="prettyprint"><code><org.apache.cordova.CordovaWebView
+ android:id="@+id/tutorialView"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+</code></pre>
+</li>
+<li>
+<p>Modify your activity so that it implements the <code>CordovaInterface</code>. It is recommended that you implement the methods that are included. You may wish to copy the methods from <code>/framework/src/org/apache/cordova/DroidGap.java</code>, or you may wish to implement your own methods. Below is a fragment of code from a basic application that uses the interface (note how the view id referenced matches the <code>id</code> attribute specified in the above XML fragment from step 4):</p>
+
+<pre class="prettyprint"><code>public class CordovaViewTestActivity extends Activity implements CordovaInterface {
+ CordovaWebView cwv;
+ /* Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+ cwv = (CordovaWebView) findViewById(R.id.tutorialView);
+ Config.init(this);
+ cwv.loadUrl(Config.getStartUrl());
+ }
+</code></pre>
+</li>
+</ol>
+<p>In addition to this, if you are using camera, you will want to implement this as well:</p>
+
+<pre class="prettyprint"><code>@Override
+public void setActivityResultCallback(CordovaPlugin plugin) {
+ this.activityResultCallback = plugin;
+}
+/**
+ * Launch an activity for which you would like a result when it finished. When this activity exits,
+ * your onActivityResult() method will be called.
+ *
+ * @param command The command object
+ * @param intent The intent to start
+ * @param requestCode The request code that is passed to callback to identify the activity
+ */
+public void startActivityForResult(CordovaPlugin command, Intent intent, int requestCode) {
+ this.activityResultCallback = command;
+ this.activityResultKeepRunning = this.keepRunning;
+
+ // If multitasking turned on, then disable it for activities that return results
+ if (command != null) {
+ this.keepRunning = false;
+ }
+
+ // Start activity
+ super.startActivityForResult(intent, requestCode);
+}
+
+@Override
+/**
+ * Called when an activity you launched exits, giving you the requestCode you started it with,
+ * the resultCode it returned, and any additional data from it.
+ *
+ * @param requestCode The request code originally supplied to startActivityForResult(),
+ * allowing you to identify who this result came from.
+ * @param resultCode The integer result code returned by the child activity through its setResult().
+ * @param data An Intent, which can return result data to the caller (various data can be attached to Intent "extras").
+ */
+protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
+ super.onActivityResult(requestCode, resultCode, intent);
+ CordovaPlugin callback = this.activityResultCallback;
+ if (callback != null) {
+ callback.onActivityResult(requestCode, resultCode, intent);
+ }
+}
+</code></pre>
+
+<p>Finally, remember to add the thread pool, otherwise the plugins will have no threads to run on.</p>
+
+<pre class="prettyprint"><code>@Override
+public ExecutorService getThreadPool() {
+ return threadPool;
+}
+</code></pre>
+
+<ol>
+<li>Copy your application's HTML and JavaScript used to the <code>/assets/www</code> directory of your Android project</li>
+<li>Copy <code>cordova.xml</code> and <code>plugins.xml</code> from <code>/framework/res/xml</code> to the <code>/res/xml</code> folder in your project</li>
+</ol>
+</div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script><script type="text/javascript" src="prettify/prettify.js"></script>
+</body>
+</html>
Added: cordova/site/public/docs/en/2.6.0/guide_cordova-webview_index.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/2.6.0/guide_cordova-webview_index.md.html?rev=1466271&view=auto
==============================================================================
--- cordova/site/public/docs/en/2.6.0/guide_cordova-webview_index.md.html (added)
+++ cordova/site/public/docs/en/2.6.0/guide_cordova-webview_index.md.html Tue Apr 9 22:34:28 2013
@@ -0,0 +1,132 @@
+<!DOCTYPE html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+<meta name="generator" content="joDoc">
+<title>Apache Cordova API Documentation</title>
+<link rel="stylesheet" type="text/css" href="index.css">
+<link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+<link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+</head>
+<body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="2.6.0rc1">2.6.0rc1</option>
+<option selected value="2.6.0">2.6.0</option>
+<option value="2.5.0rc1">2.5.0rc1</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0rc1">2.4.0rc1</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0rc2">2.3.0rc2</option>
+<option value="2.3.0rc1">2.3.0rc1</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0rc2">2.2.0rc2</option>
+<option value="2.2.0rc1">2.2.0rc1</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0rc2">2.1.0rc2</option>
+<option value="2.1.0rc1">2.1.0rc1</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0rc1">2.0.0rc1</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0rc1">1.9.0rc1</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0rc1">1.8.0rc1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0rc1">1.7.0rc1</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0rc1">1.6.0rc1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0rc1">1.5.0rc1</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="Japanese" value="jp">
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="kr"><option value="2.0.0">2.0.0</option></optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Embedding WebView</h1>
+ <small></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>API Reference</h1>
+<ul>
+<li><a href="cordova_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></li>
+<li><a href="cordova_camera_camera.md.html#Camera">Camera</a></li>
+<li><a href="cordova_media_capture_capture.md.html#Capture">Capture</a></li>
+<li><a href="cordova_compass_compass.md.html#Compass">Compass</a></li>
+<li><a href="cordova_connection_connection.md.html#Connection">Connection</a></li>
+<li><a href="cordova_contacts_contacts.md.html#Contacts">Contacts</a></li>
+<li><a href="cordova_device_device.md.html#Device">Device</a></li>
+<li><a href="cordova_events_events.md.html#Events">Events</a></li>
+<li><a href="cordova_file_file.md.html#File">File</a></li>
+<li><a href="cordova_geolocation_geolocation.md.html#Geolocation">Geolocation</a></li>
+<li><a href="cordova_globalization_globalization.md.html#Globalization">Globalization</a></li>
+<li><a href="cordova_inappbrowser_inappbrowser.md.html#InAppBrowser">InAppBrowser</a></li>
+<li><a href="cordova_media_media.md.html#Media">Media</a></li>
+<li><a href="cordova_notification_notification.md.html#Notification">Notification</a></li>
+<li><a href="cordova_splashscreen_splashscreen.md.html#Splashscreen">Splashscreen</a></li>
+<li><a href="cordova_storage_storage.md.html#Storage">Storage</a></li>
+</ul>
+<h1>Guides</h1>
+<ul>
+<li><a href="guide_getting-started_index.md.html#Getting%20Started%20Guides">Getting Started Guides</a></li>
+<li><a href="guide_command-line_index.md.html#Command-Line%20Usage">Command-Line Usage</a></li>
+<li><a href="guide_upgrading_index.md.html#Upgrading%20Guides">Upgrading Guides</a></li>
+<li><a href="guide_project-settings_index.md.html#Project%20Settings">Project Settings</a></li>
+<li><a href="guide_plugin-development_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_whitelist_index.md.html#Domain%20Whitelist%20Guide">Domain Whitelist Guide</a></li>
+<li><a href="guide_cordova-webview_index.md.html#Embedding%20WebView">Embedding WebView</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Embedding%20WebView">Embedding WebView</a></h1>
+
+<blockquote>
+ <p>Implement the Cordova WebView in your own project.</p>
+</blockquote>
+
+<ul>
+<li><a href="guide_cordova-webview_android.md.html#Embedding%20Cordova%20WebView%20on%20Android">Embedding Cordova WebView on Android</a></li>
+<li><a href="guide_cordova-webview_ios.md.html#Embedding%20Cordova%20WebView%20on%20iOS">Embedding Cordova WebView on iOS</a></li>
+</ul>
+</div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script><script type="text/javascript" src="prettify/prettify.js"></script>
+</body>
+</html>
Added: cordova/site/public/docs/en/2.6.0/guide_cordova-webview_ios.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/2.6.0/guide_cordova-webview_ios.md.html?rev=1466271&view=auto
==============================================================================
--- cordova/site/public/docs/en/2.6.0/guide_cordova-webview_ios.md.html (added)
+++ cordova/site/public/docs/en/2.6.0/guide_cordova-webview_ios.md.html Tue Apr 9 22:34:28 2013
@@ -0,0 +1,291 @@
+<!DOCTYPE html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+<meta name="generator" content="joDoc">
+<title>Apache Cordova API Documentation</title>
+<link rel="stylesheet" type="text/css" href="index.css">
+<link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+<link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+</head>
+<body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="2.6.0rc1">2.6.0rc1</option>
+<option selected value="2.6.0">2.6.0</option>
+<option value="2.5.0rc1">2.5.0rc1</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0rc1">2.4.0rc1</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0rc2">2.3.0rc2</option>
+<option value="2.3.0rc1">2.3.0rc1</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0rc2">2.2.0rc2</option>
+<option value="2.2.0rc1">2.2.0rc1</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0rc2">2.1.0rc2</option>
+<option value="2.1.0rc1">2.1.0rc1</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0rc1">2.0.0rc1</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0rc1">1.9.0rc1</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0rc1">1.8.0rc1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0rc1">1.7.0rc1</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0rc1">1.6.0rc1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0rc1">1.5.0rc1</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="Japanese" value="jp">
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="kr"><option value="2.0.0">2.0.0</option></optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Embedding Cordova WebView on iOS</h1>
+ <small><select><option value="Embedding%2520Cordova%2520WebView%2520on%2520iOS">Embedding Cordova WebView on iOS</option>
+<option value="Embedding%20Cordova%20WebView%20on%20iOS_prerequisites">Â Â Â Â Â Â - Prerequisites</option>
+<option value="Embedding%20Cordova%20WebView%20on%20iOS_adding_cleaver_to_your_xcode_project_cordovalib_sub_project">Â Â Â Â Â Â - Adding Cleaver to your Xcode project (CordovaLib sub-project)</option>
+<option value="Embedding%20Cordova%20WebView%20on%20iOS_using_cdvviewcontroller_in_your_code">Â Â Â Â Â Â - Using CDVViewController in your code</option>
+<option value="Embedding%20Cordova%20WebView%20on%20iOS_adding_your_html_css_and_javascript_assets">Â Â Â Â Â Â - Adding your HTML, CSS and JavaScript assets</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>API Reference</h1>
+<ul>
+<li><a href="cordova_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></li>
+<li><a href="cordova_camera_camera.md.html#Camera">Camera</a></li>
+<li><a href="cordova_media_capture_capture.md.html#Capture">Capture</a></li>
+<li><a href="cordova_compass_compass.md.html#Compass">Compass</a></li>
+<li><a href="cordova_connection_connection.md.html#Connection">Connection</a></li>
+<li><a href="cordova_contacts_contacts.md.html#Contacts">Contacts</a></li>
+<li><a href="cordova_device_device.md.html#Device">Device</a></li>
+<li><a href="cordova_events_events.md.html#Events">Events</a></li>
+<li><a href="cordova_file_file.md.html#File">File</a></li>
+<li><a href="cordova_geolocation_geolocation.md.html#Geolocation">Geolocation</a></li>
+<li><a href="cordova_globalization_globalization.md.html#Globalization">Globalization</a></li>
+<li><a href="cordova_inappbrowser_inappbrowser.md.html#InAppBrowser">InAppBrowser</a></li>
+<li><a href="cordova_media_media.md.html#Media">Media</a></li>
+<li><a href="cordova_notification_notification.md.html#Notification">Notification</a></li>
+<li><a href="cordova_splashscreen_splashscreen.md.html#Splashscreen">Splashscreen</a></li>
+<li><a href="cordova_storage_storage.md.html#Storage">Storage</a></li>
+</ul>
+<h1>Guides</h1>
+<ul>
+<li><a href="guide_getting-started_index.md.html#Getting%20Started%20Guides">Getting Started Guides</a></li>
+<li><a href="guide_command-line_index.md.html#Command-Line%20Usage">Command-Line Usage</a></li>
+<li><a href="guide_upgrading_index.md.html#Upgrading%20Guides">Upgrading Guides</a></li>
+<li><a href="guide_project-settings_index.md.html#Project%20Settings">Project Settings</a></li>
+<li><a href="guide_plugin-development_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_whitelist_index.md.html#Domain%20Whitelist%20Guide">Domain Whitelist Guide</a></li>
+<li><a href="guide_cordova-webview_index.md.html#Embedding%20WebView">Embedding WebView</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Embedding%20Cordova%20WebView%20on%20iOS">Embedding Cordova WebView on iOS</a></h1>
+
+<p>Beginning with Cordova 1.4, you can use Cordova as a component in your iOS applications. This component is code-named "Cleaver".</p>
+
+<p>New Cordova-based applications created using the Xcode template provided in Cordova 1.4 or greater use Cleaver, and this template is considered the reference implementation for Cleaver.</p>
+
+<p>Beginning with Cordova 2.0.0 and greater, we only support the sub-project based Cleaver implementation from now on.</p>
+
+<h2>
+<a name="Embedding%20Cordova%20WebView%20on%20iOS_prerequisites">Prerequisites</a>
+</h2>
+
+<ol>
+<li>
+<strong>Cordova 2.3.0</strong> or greater</li>
+<li>
+<strong>Xcode 4.5</strong> or greater</li>
+<li>
+<code>config.xml</code> file (from a <a href="guide_command-line_index.md.html#Command-Line%20Usage_ios">newly created</a> Cordova project)</li>
+</ol>
+<h2>
+<a name="Embedding%20Cordova%20WebView%20on%20iOS_adding_cleaver_to_your_xcode_project_cordovalib_sub_project">Adding Cleaver to your Xcode project (CordovaLib sub-project)</a>
+</h2>
+
+<ol>
+<li>
+<strong>Download and extract the Cordova source</strong> to a <strong>permanent folder location</strong> on your hard drive (say to ~/Documents/Cordova)</li>
+<li>
+<strong>Quit Xcode</strong> if it is running.</li>
+<li>
+<strong>Navigate</strong> to the directory where you put the downloaded source above, using <strong>Terminal.app</strong>.</li>
+<li>
+<strong>Copy</strong> the <code>config.xml</code> file into your project folder on disk (see <strong>Prerequisites</strong> above)</li>
+<li>
+<strong>Drag and drop</strong> the <code>config.xml</code> file into the Project Navigator of Xcode</li>
+<li>
+<strong>Choose</strong> the radio-button <strong>"Create groups for any added folders"</strong>, select the <strong>Finish</strong> button</li>
+<li>
+<strong>Drag and drop</strong> the <code>CordovaLib.xcodeproj</code> file into the Project Navigator of Xcode (from the permanent folder location above, and it should be in the CordovaLib sub-folder)</li>
+<li>Select <code>CordovaLib.xcodeproj</code> in the Project Navigator</li>
+<li>Press the key combination <strong>Option-Command-1</strong> to <a href="cordova_splashscreen_splashscreen.md.html#show">show</a> the <strong><a href="cordova_file_file.md.html#File">File</a> Inspector</strong>
+</li>
+<li>Choose <strong>"Relative to Group"</strong> in the <strong><a href="cordova_file_file.md.html#File">File</a> Inspector</strong> for the drop-down menu for <strong>Location</strong> </li>
+<li>Select the <strong>project icon</strong> in the Project Navigator, select your <strong>Target</strong>, then select the <strong>"Build Settings"</strong> tab</li>
+<li>Add <code>-all_load</code> and <code>-Obj-C</code> - for the <strong>"Other Linker <a href="cordova_file_file.md.html#Flags">Flags</a>"</strong> value</li>
+<li>Click on the <strong>project icon</strong> in the Project Navigator, select your <strong>Target</strong>, then select the <strong>"Build Phases"</strong> tab</li>
+<li>Expand <strong>"Link Binaries with Libraries"</strong> </li>
+<li>
+<p>Select the <strong>"+" button</strong>, and add these <strong>frameworks</strong> (and optionally in the Project Navigator, <strong>move</strong> them under the Frameworks group):</p>
+
+<pre class="prettyprint"><code>AddressBook.framework
+AddressBookUI.framework
+AudioToolbox.framework
+AVFoundation.framework
+CoreLocation.framework
+MediaPlayer.framework
+QuartzCore.framework
+SystemConfiguration.framework
+MobileCoreServices.framework
+CoreMedia.framework
+</code></pre>
+</li>
+<li><p>Expand <strong>"Target Dependencies"</strong> - the top box labeled like this if you have multiple boxes!</p></li>
+<li>Select the <strong>"+" button</strong>, and add the <code>CordovaLib</code> build product</li>
+<li>Expand <strong>"Link Binaries with Libraries"</strong> - the top box labeled like
+this if you have multiple boxes!</li>
+<li>Select the <strong>"+" button</strong>, and add <code>libCordova.a</code>
+</li>
+<li>Set the Xcode preference <strong>"Xcode Preferences -> Locations -> Derived Data -> Advancedâ¦"</strong> to <strong>"Unique"</strong>
+</li>
+<li>Select the <strong>project icon</strong> in the Project Navigator, select your <strong>Target</strong>, then select the <strong>"Build Settings"</strong> tab</li>
+<li>
+<p>Search for <strong>"Header Search Paths"</strong>. For that setting, add these three values below (with quotes):</p>
+
+<pre class="prettyprint"><code>"$(TARGET_BUILD_DIR)/usr/local/lib/include"
+
+
+"$(OBJROOT)/UninstalledProducts/include"
+
+
+"$(BUILT_PRODUCTS_DIR)"
+</code></pre>
+
+<p>With <strong>Cordova 2.1.0</strong>, CordovaLib has been upgraded to use <strong>Automatic Reference Counting (ARC)</strong>. You don't need to upgrade to <strong>ARC</strong> to use CordovaLib, but if you want to upgrade your project to use <strong>ARC</strong>, please use the Xcode migration wizard from the menu: <strong>Edit -> Refactor -> Convert to Objective-C ARCâ¦</strong>, <strong>de-select libCordova.a</strong>, then run the wizard to completion. </p>
+</li>
+</ol>
+<h2>
+<a name="Embedding%20Cordova%20WebView%20on%20iOS_using_cdvviewcontroller_in_your_code">Using CDVViewController in your code</a>
+</h2>
+
+<ol>
+<li>
+<p>Add this <strong>header</strong>:</p>
+
+<pre class="prettyprint"><code>#import <Cordova/CDVViewController.h>
+</code></pre>
+</li>
+<li>
+<p>Instantiate a <strong>new</strong> <code>CDVViewController</code>, and <strong>retain it somewhere</strong> (e.g. to a property in your class): </p>
+
+<pre class="prettyprint"><code>CDVViewController* viewController = [CDVViewController new];
+</code></pre>
+</li>
+<li>
+<p>(<em>OPTIONAL</em>) Set the <code>wwwFolderName</code> property (defaults to <code>"www"</code>):</p>
+
+<pre class="prettyprint"><code>viewController.wwwFolderName = @"myfolder";
+</code></pre>
+</li>
+<li>
+<p>(<em>OPTIONAL</em>) Set the start page in your config.xml, the <code><content></code> tag.</p>
+
+<pre class="prettyprint"><code><content src="index.html" />
+</code></pre>
+
+<p>OR</p>
+
+<pre class="prettyprint"><code><content src="http://apache.org" />
+</code></pre>
+</li>
+<li>
+<p>(<em>OPTIONAL</em>) Set the <code>useSplashScreen</code> property (defaults to <code>NO</code>):</p>
+
+<pre class="prettyprint"><code>viewController.useSplashScreen = YES;
+</code></pre>
+</li>
+<li>
+<p>Set the <strong>view frame</strong> (always set this as the last property):</p>
+
+<pre class="prettyprint"><code>viewController.view.frame = CGRectMake(0, 0, 320, 480);
+</code></pre>
+</li>
+<li>
+<p><strong>Add</strong> Cleaver to your view:</p>
+
+<pre class="prettyprint"><code>[myView addSubview:viewController.view];
+</code></pre>
+</li>
+</ol>
+<h2>
+<a name="Embedding%20Cordova%20WebView%20on%20iOS_adding_your_html_css_and_javascript_assets">Adding your HTML, CSS and JavaScript assets</a>
+</h2>
+
+<ol>
+<li>Create a <strong>new folder</strong> in your project <strong>on disk</strong>, for example, name it <code>www</code>
+</li>
+<li>Put your <strong>HTML, CSS and JavaScript assets</strong> into this folder</li>
+<li>
+<strong>Drag and drop</strong> the folder into the Project Navigator of Xcode</li>
+<li>
+<strong>Choose</strong> the radio-button <strong>"Create folder references for any added folders"</strong>
+</li>
+<li>
+<p><strong>Set the appropriate <code>wwwFolderName</code> and <code>startPage</code> properties</strong> for the folder you created in <strong>(1)</strong> or use the defaults (see previous section) when you instantiate the <code>CDVViewController</code>.</p>
+
+<pre class="prettyprint"><code>/*
+ if you created a folder called 'myfolder' and
+ you want the file 'mypage.html' in it to be
+ the startPage
+*/
+viewController.wwwFolderName = @"myfolder";
+viewController.startPage = @"mypage.html"
+</code></pre>
+</li>
+</ol>
+</div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script><script type="text/javascript" src="prettify/prettify.js"></script>
+</body>
+</html>
Added: cordova/site/public/docs/en/2.6.0/guide_getting-started_android_index.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/2.6.0/guide_getting-started_android_index.md.html?rev=1466271&view=auto
==============================================================================
--- cordova/site/public/docs/en/2.6.0/guide_getting-started_android_index.md.html (added)
+++ cordova/site/public/docs/en/2.6.0/guide_getting-started_android_index.md.html Tue Apr 9 22:34:28 2013
@@ -0,0 +1,274 @@
+<!DOCTYPE html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+<meta name="generator" content="joDoc">
+<title>Apache Cordova API Documentation</title>
+<link rel="stylesheet" type="text/css" href="index.css">
+<link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+<link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+</head>
+<body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="2.6.0rc1">2.6.0rc1</option>
+<option selected value="2.6.0">2.6.0</option>
+<option value="2.5.0rc1">2.5.0rc1</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0rc1">2.4.0rc1</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0rc2">2.3.0rc2</option>
+<option value="2.3.0rc1">2.3.0rc1</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0rc2">2.2.0rc2</option>
+<option value="2.2.0rc1">2.2.0rc1</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0rc2">2.1.0rc2</option>
+<option value="2.1.0rc1">2.1.0rc1</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0rc1">2.0.0rc1</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0rc1">1.9.0rc1</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0rc1">1.8.0rc1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0rc1">1.7.0rc1</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0rc1">1.6.0rc1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0rc1">1.5.0rc1</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="Japanese" value="jp">
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="kr"><option value="2.0.0">2.0.0</option></optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Getting Started with Android</h1>
+ <small><select><option value="Getting%2520Started%2520with%2520Android">Getting Started with Android</option>
+<option value="Getting%20Started%20with%20Android_1_minimum_requirements_for_development">Â Â Â Â Â Â - 1. Minimum Requirements for Development</option>
+<option value="Getting%20Started%20with%20Android_1_1_supported_android_devices">Â Â Â Â Â Â - 1.1 Supported Android Devices</option>
+<option value="Getting%20Started%20with%20Android_2_install_sdk_cordova">Â Â Â Â Â Â - 2. Install SDK + Cordova</option>
+<option value="Getting%20Started%20with%20Android_3a_setup_your_path_environment_variable_on_mac_os">Â Â Â Â Â Â - 3A. Setup your PATH environment variable on Mac OS</option>
+<option value="Getting%20Started%20with%20Android_3b_setup_your_path_environment_variable_on_windows">Â Â Â Â Â Â - 3B. Setup your PATH environment variable on Windows</option>
+<option value="Getting%20Started%20with%20Android_4_setup_new_project">Â Â Â Â Â Â - 4. Setup New Project</option>
+<option value="Getting%20Started%20with%20Android_5a_deploy_to_emulator">Â Â Â Â Â Â - 5A. Deploy to Emulator</option>
+<option value="Getting%20Started%20with%20Android_5b_deploy_to_device">Â Â Â Â Â Â - 5B. Deploy to Device
+</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>API Reference</h1>
+<ul>
+<li><a href="cordova_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></li>
+<li><a href="cordova_camera_camera.md.html#Camera">Camera</a></li>
+<li><a href="cordova_media_capture_capture.md.html#Capture">Capture</a></li>
+<li><a href="cordova_compass_compass.md.html#Compass">Compass</a></li>
+<li><a href="cordova_connection_connection.md.html#Connection">Connection</a></li>
+<li><a href="cordova_contacts_contacts.md.html#Contacts">Contacts</a></li>
+<li><a href="cordova_device_device.md.html#Device">Device</a></li>
+<li><a href="cordova_events_events.md.html#Events">Events</a></li>
+<li><a href="cordova_file_file.md.html#File">File</a></li>
+<li><a href="cordova_geolocation_geolocation.md.html#Geolocation">Geolocation</a></li>
+<li><a href="cordova_globalization_globalization.md.html#Globalization">Globalization</a></li>
+<li><a href="cordova_inappbrowser_inappbrowser.md.html#InAppBrowser">InAppBrowser</a></li>
+<li><a href="cordova_media_media.md.html#Media">Media</a></li>
+<li><a href="cordova_notification_notification.md.html#Notification">Notification</a></li>
+<li><a href="cordova_splashscreen_splashscreen.md.html#Splashscreen">Splashscreen</a></li>
+<li><a href="cordova_storage_storage.md.html#Storage">Storage</a></li>
+</ul>
+<h1>Guides</h1>
+<ul>
+<li><a href="guide_getting-started_index.md.html#Getting%20Started%20Guides">Getting Started Guides</a></li>
+<li><a href="guide_command-line_index.md.html#Command-Line%20Usage">Command-Line Usage</a></li>
+<li><a href="guide_upgrading_index.md.html#Upgrading%20Guides">Upgrading Guides</a></li>
+<li><a href="guide_project-settings_index.md.html#Project%20Settings">Project Settings</a></li>
+<li><a href="guide_plugin-development_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_whitelist_index.md.html#Domain%20Whitelist%20Guide">Domain Whitelist Guide</a></li>
+<li><a href="guide_cordova-webview_index.md.html#Embedding%20WebView">Embedding WebView</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Getting%20Started%20with%20Android">Getting Started with Android</a></h1>
+
+<p>This guide describes how to set up your development environment for Cordova and run a sample application.</p>
+
+<h2>
+<a name="Getting%20Started%20with%20Android_1_minimum_requirements_for_development">1. Minimum Requirements for Development</a>
+</h2>
+
+<ul>
+<li>Identical to <a class="external" href="http://developer.android.com/sdk/index.html">Android Minimum Requirements</a>
+</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Android_1_1_supported_android_devices">1.1 Supported Android Devices</a>
+</h2>
+
+<ul>
+<li>Android 2.1 (Deprecated May 2013)</li>
+<li>Android 2.2</li>
+<li>Android 2.3</li>
+<li>Android 3.x (Deprecated May 2013)</li>
+<li>Android 4.x</li>
+</ul>
+<p>We currently do not support Android 1.x, and we plan to deprecate platforms in the future as they are updated and dip below 5% on the <a class="external" href="http://developer.android.com/about/dashboards/index.html">distribution dashboard</a> provided by Google.</p>
+
+<h2>
+<a name="Getting%20Started%20with%20Android_2_install_sdk_cordova">2. Install SDK + Cordova</a>
+</h2>
+
+<ul>
+<li>Download and install <a class="external" href="http://www.eclipse.org/downloads/">Eclipse Classic</a>
+</li>
+<li>Download and install <a class="external" href="http://developer.android.com/sdk/index.html">Android SDK</a>
+</li>
+<li>Download and install <a class="external" href="http://developer.android.com/sdk/eclipse-adt.html#installing">ADT Plugin</a>
+</li>
+<li>Download the latest copy of <a class="external" href="http://cordova.apache.org/#download">Cordova</a> and extract its contents. We will be working with the Android directory.</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Android_3a_setup_your_path_environment_variable_on_mac_os">3A. Setup your PATH environment variable on Mac OS</a>
+</h2>
+
+<ul>
+<li>Open the Terminal program (this is in your Applications/Utilites folder by default).</li>
+<li>Run the following command</li>
+</ul>
+<p><code>touch ~/.bash_profile; open ~/.bash_profile</code></p>
+
+<ul>
+<li>This will open the file in the your default text editor.</li>
+<li>You need to add the path to your Android SDK platform-tools and tools directory. In my example I will use "/Development/android-sdk-macosx" as the directory the SDK is installed in. Add the following line:</li>
+</ul>
+<p><code>export PATH=${PATH}:/Development/android-sdk-macosx/platform-tools:/Development/android-sdk-macosx/tools</code> </p>
+
+<ul>
+<li>Save the file and quit the text editor.</li>
+<li>Execute your .bash_profile to update your PATH. </li>
+</ul>
+<p><code>source ~/.bash_profile</code></p>
+
+<ul>
+<li>Now everytime you open the Terminal program you PATH will included the Android SDK.</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Android_3b_setup_your_path_environment_variable_on_windows">3B. Setup your PATH environment variable on Windows</a>
+</h2>
+
+<ul>
+<li>From the Desktop, right-click My Computer and click Properties.</li>
+<li>Click Advanced System Settings link in the left column.</li>
+<li>In the System Properties window click the Environment Variables button.</li>
+<li>Select the PATH variable from the System variables section.</li>
+<li>Select the Edit button.</li>
+<li>You need to add the path to your Android SDK platform-tools and tools directory. In my example I will use "C:\Development\android-sdk-windows" as the directory the SDK is installed in. Append the following text into the text box:</li>
+</ul>
+<p><code>;C:\Development\android-sdk-windows\platform-tools;C:\Development\android-sdk-windows\tools</code></p>
+
+<ul>
+<li>Save your edit. Close the Environment Variables dialog.</li>
+<li>Additionally, you may need to include <code>%JAVA_HOME%\bin</code> to your PATH as well. To check to see if this is required, run a command prompt and type <code>java</code>. If the program can not be found add <code>%JAVA_HOME%\bin</code> to the PATH. You may need to specify the full path instead of using the <code>%JAVA_HOME%</code> environment variable.</li>
+<li>Finally, you may need to include <code>%ANT_HOME%\bin</code> to your PATH as well. To check to see if this is required, run a command prompt and type <code>ant</code>. If the program can not be found add <code>%ANT_HOME%\bin</code> to the PATH. You may need to specify the full path instead of using the <code>%ANT_HOME%</code> environment variable.</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Android_4_setup_new_project">4. Setup New Project</a>
+</h2>
+
+<ul>
+<li>In a terminal window, navigate to the <code>bin</code> directory within the <code>android</code> subfolder of the Cordova distribution.</li>
+<li>
+<p>Type in <code>./create <project_folder_path> <package_name> <project_name></code> then press <strong>"Enter"</strong></p>
+
+<pre class="prettyprint"><code><project_folder_path> is the path to your new Cordova Android project
+<package_name> is the package name, e.g. com.YourCompany.YourAppName
+<project_name> is the project name, e.g. YourApp (Must not contain spaces)
+</code></pre>
+</li>
+<li><p>Launch Eclipse, and select menu item <strong>New Project</strong>
+<img src="img/guide/getting-started/android/eclipse_new_project.png" alt="" title=""></p></li>
+<li>Select the directory you used for <code><project_folder_path></code>
+</li>
+<li>Click Finish.</li>
+</ul>
+<p>If your project has a red X indicating there is a problem follow these additional steps:</p>
+
+<ul>
+<li>Right click on the project folder.</li>
+<li>In the Properties dialog that is displayed select Android from the navigation pane.</li>
+<li>For the project build target select the highest Android API level you have installed.</li>
+<li>Click OK</li>
+<li>Then from the Project menu bar item select Clean.</li>
+<li>This should correct all the errors in the project.</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Android_5a_deploy_to_emulator">5A. Deploy to Emulator</a>
+</h2>
+
+<ul>
+<li>Right click the project and go to <strong>Run As > Android Application</strong>
+</li>
+<li>Eclipse will ask you to select an appropriate AVD. If there isn't one, then you'll need to create it.</li>
+</ul>
+<p><strong>Note: For a faster experience, use an Intel-based emulator image:</strong></p>
+
+<ul>
+<li>Open the Android SDK Manager
+<img src="img/guide/getting-started/android/eclipse_android_sdk_button.png" alt="" title="">
+</li>
+<li>Install one or more <code>Intel x86 Atom</code> System Images as well as the <code>Intel Hardware Accelerated Execution Manager</code> (under Extras).</li>
+<li>Run the Intel installer, which has been downloaded to: <code>extras/intel/Hardware_Accelerated_Execution_Manager</code> within your Android SDK</li>
+<li>Create a new AVD with the Target set to an Intel image.</li>
+<li>When starting the emulator, ensure there are no error messages about the HAX module failing to load.</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Android_5b_deploy_to_device">5B. Deploy to Device
+</a>
+</h2>
+
+<ul>
+<li>Make sure USB debugging is enabled on your device and plug it into your system. Information can be found on the <a class="external" href="http://developer.android.com/tools/device.html">Android Developer Site</a>
+</li>
+<li>Right click the project and go to <strong>Run As > Android Application</strong>
+</li>
+</ul>
+</div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script><script type="text/javascript" src="prettify/prettify.js"></script>
+</body>
+</html>
Added: cordova/site/public/docs/en/2.6.0/guide_getting-started_bada_index.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/2.6.0/guide_getting-started_bada_index.md.html?rev=1466271&view=auto
==============================================================================
--- cordova/site/public/docs/en/2.6.0/guide_getting-started_bada_index.md.html (added)
+++ cordova/site/public/docs/en/2.6.0/guide_getting-started_bada_index.md.html Tue Apr 9 22:34:28 2013
@@ -0,0 +1,226 @@
+<!DOCTYPE html>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
+<meta name="generator" content="joDoc">
+<title>Apache Cordova API Documentation</title>
+<link rel="stylesheet" type="text/css" href="index.css">
+<link rel="stylesheet" type="text/css" href="mobile.css" media="only screen and (max-device-width: 1024px)">
+<link rel="stylesheet" type="text/css" href="prettify/prettify.css">
+</head>
+<body>
+ <div id="header">
+ <h1><a href="index.html">Apache <strong>Cordova</strong> Documentation</a></h1>
+ <small>
+ <select><optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="2.6.0rc1">2.6.0rc1</option>
+<option selected value="2.6.0">2.6.0</option>
+<option value="2.5.0rc1">2.5.0rc1</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0rc1">2.4.0rc1</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0rc2">2.3.0rc2</option>
+<option value="2.3.0rc1">2.3.0rc1</option>
+<option value="2.3.0">2.3.0</option>
+<option value="2.2.0rc2">2.2.0rc2</option>
+<option value="2.2.0rc1">2.2.0rc1</option>
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0rc2">2.1.0rc2</option>
+<option value="2.1.0rc1">2.1.0rc1</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0rc1">2.0.0rc1</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0rc1">1.9.0rc1</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.8.0rc1">1.8.0rc1</option>
+<option value="1.8.0">1.8.0</option>
+<option value="1.7.0rc1">1.7.0rc1</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0rc1">1.6.0rc1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0rc1">1.5.0rc1</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="Japanese" value="jp">
+<option value="2.2.0">2.2.0</option>
+<option value="2.1.0">2.1.0</option>
+<option value="2.0.0">2.0.0</option>
+<option value="1.9.0">1.9.0</option>
+<option value="1.8.1">1.8.1</option>
+<option value="1.7.0">1.7.0</option>
+</optgroup>
+<optgroup label="Korean" value="kr"><option value="2.0.0">2.0.0</option></optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Getting Started with Bada</h1>
+ <small><select><option value="Getting%2520Started%2520with%2520Bada">Getting Started with Bada</option>
+<option value="Getting%20Started%20with%20Bada_1_requirements">Â Â Â Â Â Â - 1. Requirements</option>
+<option value="Getting%20Started%20with%20Bada_2_install_sdk_cordova">Â Â Â Â Â Â - 2. Install SDK + Cordova</option>
+<option value="Getting%20Started%20with%20Bada_3_setup_new_project">Â Â Â Â Â Â - 3. Setup New Project</option>
+<option value="Getting%20Started%20with%20Bada_4_hello_world">Â Â Â Â Â Â - 4. Hello World</option>
+<option value="Getting%20Started%20with%20Bada_5a_deploy_to_simulator">Â Â Â Â Â Â - 5A. Deploy to Simulator</option>
+<option value="Getting%20Started%20with%20Bada_5b_deploy_to_device">Â Â Â Â Â Â - 5B. Deploy to Device
+</option>
+<option value="Getting%20Started%20with%20Bada_done">Â Â Â Â Â Â - Done!</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>API Reference</h1>
+<ul>
+<li><a href="cordova_accelerometer_accelerometer.md.html#Accelerometer">Accelerometer</a></li>
+<li><a href="cordova_camera_camera.md.html#Camera">Camera</a></li>
+<li><a href="cordova_media_capture_capture.md.html#Capture">Capture</a></li>
+<li><a href="cordova_compass_compass.md.html#Compass">Compass</a></li>
+<li><a href="cordova_connection_connection.md.html#Connection">Connection</a></li>
+<li><a href="cordova_contacts_contacts.md.html#Contacts">Contacts</a></li>
+<li><a href="cordova_device_device.md.html#Device">Device</a></li>
+<li><a href="cordova_events_events.md.html#Events">Events</a></li>
+<li><a href="cordova_file_file.md.html#File">File</a></li>
+<li><a href="cordova_geolocation_geolocation.md.html#Geolocation">Geolocation</a></li>
+<li><a href="cordova_globalization_globalization.md.html#Globalization">Globalization</a></li>
+<li><a href="cordova_inappbrowser_inappbrowser.md.html#InAppBrowser">InAppBrowser</a></li>
+<li><a href="cordova_media_media.md.html#Media">Media</a></li>
+<li><a href="cordova_notification_notification.md.html#Notification">Notification</a></li>
+<li><a href="cordova_splashscreen_splashscreen.md.html#Splashscreen">Splashscreen</a></li>
+<li><a href="cordova_storage_storage.md.html#Storage">Storage</a></li>
+</ul>
+<h1>Guides</h1>
+<ul>
+<li><a href="guide_getting-started_index.md.html#Getting%20Started%20Guides">Getting Started Guides</a></li>
+<li><a href="guide_command-line_index.md.html#Command-Line%20Usage">Command-Line Usage</a></li>
+<li><a href="guide_upgrading_index.md.html#Upgrading%20Guides">Upgrading Guides</a></li>
+<li><a href="guide_project-settings_index.md.html#Project%20Settings">Project Settings</a></li>
+<li><a href="guide_plugin-development_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_whitelist_index.md.html#Domain%20Whitelist%20Guide">Domain Whitelist Guide</a></li>
+<li><a href="guide_cordova-webview_index.md.html#Embedding%20WebView">Embedding WebView</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Getting%20Started%20with%20Bada">Getting Started with Bada</a></h1>
+
+<p>This guide describes how to set up your development environment for Cordova and run a sample application. Note that Cordova used to be called PhoneGap, so some of the sites still use the old PhoneGap name.</p>
+
+<h2>
+<a name="Getting%20Started%20with%20Bada_1_requirements">1. Requirements</a>
+</h2>
+
+<ul>
+<li>Windows</li>
+<li>You need the bada 1.2 SDK to use cordova-bada (which is no longer available on Samsung's website)</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Bada_2_install_sdk_cordova">2. Install SDK + Cordova</a>
+</h2>
+
+<ul>
+<li>Download and install the <a class="external" href="http://developer.bada.com">Bada SDK</a> (Windows only). </li>
+<li>Download the latest copy of <a class="external" href="http://phonegap.com/download">Cordova</a> and extract its contents. We will be working with the bada directory.</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Bada_3_setup_new_project">3. Setup New Project</a>
+</h2>
+
+<ul>
+<li>
+<p>In Bada IDE, select <em><a href="cordova_file_file.md.html#File">File</a></em> -> Import project -> Bada C++ / Flash Project. </p>
+
+<ul>
+<li>Note: Bada 1.2 select "Bada Application Project"</li>
+</ul>
+<p><img src="img/guide/getting-started/bada/import_bada_project.png" alt="" title=""></p>
+</li>
+<li><p>Make sure "Select root directory is checked" and then click Browse</p></li>
+<li>
+<p>Browse to Cordova bada project folder (bada for 1.2 and bada-wac for 2.x) and select it. Make sure "Copy projects into workspace is checked"</p>
+
+<p><img src="img/guide/getting-started/bada/import_bada_project.png" alt="" title=""></p>
+</li>
+<li>
+<p>Click "Finish"</p>
+
+<p></p>
+<p><img src="img/guide/getting-started/bada/bada_project.png" alt="" title=""></p>
+</li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Bada_4_hello_world">4. Hello World</a>
+</h2>
+
+<p><strong>Bada 2.x</strong>: Your HTML/CSS/Javascript code lives under the Res/ folder. Make sure your index.html contains the following two lines in the </p> section.
+
+<pre class="prettyprint"><code> <link href="osp://webapp/css/style.css" rel="stylesheet" type="text/css" />
+ <script type="text/javascript" src="osp://webapp/js/webapp_core.js"></script>
+</code></pre>
+
+<p><strong>Bada 1.2</strong>: Your HTML/CSS/Javascript code lives under the Res/ folder. Make sure your index.html contains the following line.</p>
+
+<pre class="prettyprint"><code> <script type="text/javascript" src="cordova/cordova.js"> </script>
+</code></pre>
+
+<h2>
+<a name="Getting%20Started%20with%20Bada_5a_deploy_to_simulator">5A. Deploy to Simulator</a>
+</h2>
+
+<ul>
+<li>
+<p><strong>Bada 2.x</strong>: Right click on your project s folder and select Run As -> bada Emulator Web Application </p>
+
+<p><img src="img/guide/getting-started/bada/bada_1_run.png" alt="" title=""></p>
+</li>
+<li>
+<p><strong>Bada 1.2</strong>: Right click on your project' folder and select Build configurations -> Set Active -> Simulator-Debug</p>
+
+<p><img src="img/guide/getting-started/bada/bada_set_target.png" alt="" title=""></p>
+</li>
+<li><p>Right click on your project's folder and select Run As -> bada Simulator Application. You need to <a href="cordova_inappbrowser_inappbrowser.md.html#close">close</a> the emulator every time you update your app!</p></li>
+</ul>
+<h2>
+<a name="Getting%20Started%20with%20Bada_5b_deploy_to_device">5B. Deploy to Device
+</a>
+</h2>
+
+<ul>
+<li>Make sure your device is properly configured </li>
+</ul>
+<p><strong>Bada 2.x</strong>: Right click on your project's folder and select Run As -> bada Target Web Application</p>
+
+<p><strong>Bada 1.2</strong>:
+- Right click on your project's folder and select Build configurations -> Set Active -> Target-Debug
+- Right click on your project's folder and select Run As -> bada Target Application. You need to <a href="cordova_inappbrowser_inappbrowser.md.html#close">close</a> the emulator every time you update your app!</p>
+
+<h2>
+<a name="Getting%20Started%20with%20Bada_done">Done!</a>
+</h2>
+
+ </div>
+ </div>
+
+ <!-- Functionality and Syntax Highlighting -->
+ <script type="text/javascript" src="index.js"></script><script type="text/javascript" src="prettify/prettify.js"></script>
+</body>
+</html>