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/12/13 01:41:13 UTC
svn commit: r1550603 [1/2] - in /cordova/site: ./ bin/ public/
public/docs/en/3.2.0/ public/docs/en/edge/
Author: steven
Date: Fri Dec 13 00:41:13 2013
New Revision: 1550603
URL: http://svn.apache.org/r1550603
Log:
updated references for 3.3.0
Added:
cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_config.md.html
cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_index.md.html
cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_plugin.md.html
cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_webview.md.html
cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_config.md.html
cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_index.md.html
cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_plugin.md.html
cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_webview.md.html
Modified:
cordova/site/_config.yml
cordova/site/bin/config.json
cordova/site/public/index.html
cordova/site/public/rss.xml
Modified: cordova/site/_config.yml
URL: http://svn.apache.org/viewvc/cordova/site/_config.yml?rev=1550603&r1=1550602&r2=1550603&view=diff
==============================================================================
--- cordova/site/_config.yml (original)
+++ cordova/site/_config.yml Fri Dec 13 00:41:13 2013
@@ -13,10 +13,10 @@ excerpt_separator: <!--more-->
#From old config.json
"releases": {
- "version": "3.2.0",
+ "version": "3.3.0",
"file": "https://www.apache.org/dist/cordova/cordova-3.2.0-src.zip",
"file-nomirror": "https://www.apache.org/dist/cordova/cordova-3.2.0-src.zip",
- "note": "Apache Cordova 3.2.0"
+ "note": "Apache Cordova 3.3.0"
}
"sitemap": {
Modified: cordova/site/bin/config.json
URL: http://svn.apache.org/viewvc/cordova/site/bin/config.json?rev=1550603&r1=1550602&r2=1550603&view=diff
==============================================================================
--- cordova/site/bin/config.json (original)
+++ cordova/site/bin/config.json Fri Dec 13 00:41:13 2013
@@ -1,9 +1,9 @@
{
"releases": [
{
- "version": "3.0.0",
+ "version": "3.3.0",
"file": "https://www.apache.org/dist/cordova/",
- "note": "Apache Cordova 3.0.0"
+ "note": "Apache Cordova 3.3.0"
}
],
Added: cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_config.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_config.md.html?rev=1550603&view=auto
==============================================================================
--- cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_config.md.html (added)
+++ cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_config.md.html Fri Dec 13 00:41:13 2013
@@ -0,0 +1,211 @@
+<!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="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="3.3.0">3.3.0</option>
+<option selected value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<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.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<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="ko">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Amazon Fire OS Configuration</h1>
+ <small></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<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>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Amazon%20Fire%20OS%20Configuration">Amazon Fire OS Configuration</a></h1>
+
+<p>The <code>config.xml</code> file controls an app's basic settings that apply
+across each application and CordovaWebView instance. This section
+details preferences that only apply to Amazon Fire OS builds. See <a href="#The%0Aconfig.xml%20File">The
+config.xml File</a> for information on global configuration options.</p>
+
+<ul>
+<li>
+<p><code>KeepRunning</code> (boolean, defaults to <code>true</code>): Determines whether the
+application stays running in the background even after a <code><a href="cordova_events_events.md.html#pause">pause</a></code>
+event fires.</p>
+
+<pre class="prettyprint"><code><preference name="KeepRunning" value="false"/>
+</code></pre>
+</li>
+<li>
+<p><code>ErrorUrl</code>: Specifies an error page that displays in response to
+standard HTTP errors in the 400-500 range. Place the specified file
+in the top-level directory containing the home page and other web
+assets.</p>
+
+<pre class="prettyprint"><code><preference name="ErrorUrl" value="error.html"/>
+</code></pre>
+</li>
+<li>
+<p><code>LoadingDialog</code>: Display a native dialog when loading the app. The
+value's format is <em>Title, Message</em></p>
+
+<pre class="prettyprint"><code><preference name="LoadingDialog" value="Please wait, the app is loading"/>
+</code></pre>
+</li>
+<li>
+<p><code>LoadingPageDialog</code>: Display a native dialog when loading sub-pages
+within an app. The value's format is <em>Title, Message</em></p>
+
+<pre class="prettyprint"><code><preference name="LoadingPageDialog" value="Please wait, the data is loading"/>
+</code></pre>
+</li>
+<li>
+<p><code>LoadUrlTimeoutValue</code> (number, default is <code>20000</code>): When loading a
+page, the amount of time to wait before throwing a timeout error.
+This example specifies 10 seconds rather than 20:</p>
+
+<pre class="prettyprint"><code><preference name="LoadUrlTimeoutValue" value="10000"/>
+</code></pre>
+</li>
+<li>
+<p><code>SplashScreen</code>: The name of the file minus its extension in the
+<code>res/drawable</code> directory. Various assets must share this common
+name in various subdirectories.</p>
+
+<pre class="prettyprint"><code><preference name="SplashScreen" value="splash"/>
+</code></pre>
+</li>
+<li>
+<p><code>SplashScreenDelay</code> (number, defaults to <code>5000</code>): The amount of
+time the splash screen image displays.</p>
+
+<pre class="prettyprint"><code><preference name="SplashScreenDelay" value="10000"/>
+</code></pre>
+</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/3.2.0/guide_platforms_amazonfireos_index.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_index.md.html?rev=1550603&view=auto
==============================================================================
--- cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_index.md.html (added)
+++ cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_index.md.html Fri Dec 13 00:41:13 2013
@@ -0,0 +1,288 @@
+<!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="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="3.3.0">3.3.0</option>
+<option selected value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<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.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<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="ko">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Amazon Fire OS Platform Guide</h1>
+ <small><select><option value="Amazon%2520Fire%2520OS%2520Platform%2520Guide">Amazon Fire OS Platform Guide</option>
+<option value="Amazon%20Fire%20OS%20Platform%20Guide_requirements_and_support">Â Â Â Â Â Â - Requirements and Support</option>
+<option value="Amazon%20Fire%20OS%20Platform%20Guide_installation">Â Â Â Â Â Â - Installation</option>
+<option value="Amazon%20Fire%20OS%20Platform%20Guide_open_a_project_in_the_sdk">Â Â Â Â Â Â - Open a Project in the SDK</option>
+<option value="Amazon%20Fire%20OS%20Platform%20Guide_deploy_to_device">Â Â Â Â Â Â - Deploy to Device
+</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<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>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Amazon%20Fire%20OS%20Platform%20Guide">Amazon Fire OS Platform Guide</a></h1>
+
+<p>This guide shows how to set up your SDK development environment to
+deploy Cordova apps for Amazon Fire OS devices, such as the Kindle Fire HDX.</p>
+
+<p>See the following for more detailed platform-specific information:</p>
+
+<ul>
+<li><a href="guide_platforms_amazonfireos_config.md.html#Amazon%20Fire%20OS%20Configuration">Amazon Fire OS Configuration</a></li>
+<li><a href="guide_platforms_amazonfireos_webview.md.html#Amazon%20Fire%20OS%20WebViews">Amazon Fire OS WebViews</a></li>
+<li><a href="guide_platforms_amazonfireos_plugin.md.html#Amazon%20Fire%20OS%20Plugins">Amazon Fire OS Plugins</a></li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20Platform%20Guide_requirements_and_support">Requirements and Support</a>
+</h2>
+
+<p>Developing Cordova apps for Amazon Fire OS requires the Android SDK and the Amazon WebView SDK. Check the requirements for these SDKs at the links below:</p>
+
+<ul>
+<li><p><a class="external" href="http://developer.android.com/sdk/">Android SDK System</a></p></li>
+<li><p><a class="external" href="https://developer.amazon.com/sdk/fire/IntegratingAWV.html#installawv">Amazon WebView SDK</a></p></li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20Platform%20Guide_installation">Installation</a>
+</h2>
+
+<h3>Android SDK</h3>
+
+<p>Install the Android SDK from
+<a class="external" href="http://developer.android.com/sdk/">developer.android.com/sdk</a>. You
+may be presented with a choice of where to install the SDK, otherwise
+move the downloaded <code>adt-bundle</code> tree to wherever you store
+development tools.</p>
+
+<p>For Cordova command-line tools to work, you need to include the SDK's
+<code>tools</code> and <code>platform-tools</code> directories in your PATH environment.</p>
+
+<p>On Mac, Linux or other Unix-like platforms, you can use a text editor to create or modify the
+<code>~/.bash_profile</code> file, adding a line such as the following, depending
+on where the SDK installs:</p>
+
+<pre class="prettyprint"><code>export PATH=${PATH}:/Development/adt-bundle/sdk/platform-tools:/Development/adt-bundle/sdk/tools
+</code></pre>
+
+<p>This exposes SDK tools in newly opened terminal windows. Otherwise run
+this to make them available in the current session:</p>
+
+<pre class="prettyprint"><code>$ source ~/.bash_profile
+</code></pre>
+
+<p>To modify the PATH environment on Windows 7:</p>
+
+<ul>
+<li><p>Click on the <strong>Start</strong> menu in the lower-left corner of the desktop,
+right-click on <strong>Computer</strong>, then click <strong>Properties</strong>.</p></li>
+<li><p>Click <strong>Advanced System Settings</strong> in the column on the left.</p></li>
+<li><p>In the resulting dialog box, press <strong>Environment Variables</strong>.</p></li>
+<li><p>Select the <strong>PATH</strong> variable and press <strong>Edit</strong>.</p></li>
+<li>
+<p>Append the following to the PATH based on where you installed the
+SDK, for example:</p>
+
+<pre class="prettyprint"><code>;C:\Development\adt-bundle\sdk\platform-tools;C:\Development\adt-bundle\sdk\tools
+</code></pre>
+</li>
+<li><p>Save the value and <a href="cordova_inappbrowser_inappbrowser.md.html#close">close</a> both dialog boxes.</p></li>
+</ul>
+<p>You may also need to enable Java and Ant. Open a command prompt and
+type <code>java</code>, and also type <code>ant</code>. Append to the PATH whichever fail to
+run:</p>
+
+<pre class="prettyprint"><code>;%JAVA_HOME%\bin;%ANT_HOME%\bin
+</code></pre>
+
+<h3>Amazon WebView SDK</h3>
+
+<p>Download the Amazon WebView SDK from the <a class="external" href="https://developer.amazon.com/sdk/fire/IntegratingAWV.html#installawv">Amazon Developer Portal</a>.</p>
+
+<ul>
+<li>Create a <code>libs/</code> folder in <code>~/.cordova/lib/amazon-fireos/cordova/3.1.0/</code> folder.</li>
+<li>Add the <code>awv_interface.jar</code> from the downloaded SDK to <code>~/.cordova/lib/amazon-fireos/cordova/3.1.0/libs/</code>
+</li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20Platform%20Guide_open_a_project_in_the_sdk">Open a Project in the SDK</a>
+</h2>
+
+<p>Use the <code>cordova</code> utility to set up a new project, as described in The
+Cordova The Command-line Interface. For example, in a source-code directory:</p>
+
+<pre class="prettyprint"><code>$ cordova create hello com.example.hello "HelloWorld"
+$ cd hello
+$ cordova platform add amazon-fireos
+$ cordova build
+</code></pre>
+
+<p>Once created, here's how to use the SDK to modify it:</p>
+
+<ul>
+<li><p>Launch the <strong>Eclipse</strong> application.</p></li>
+<li><p>Select the <strong>New Project</strong> menu item.</p></li>
+<li><p>Choose <strong>Android Project from Existing Code</strong> from the resulting dialog box, and press <strong>Next</strong>:
+<img src="img/guide/platforms//eclipse_new_project.png" alt="" title=""></p></li>
+<li><p>Navigate to <code>hello</code>, or whichever directory you created for the project, then to the <code>platforms/amazon-fireos</code> subdirectory.</p></li>
+<li><p>Press <strong>Finish</strong>.</p></li>
+</ul>
+<p>Once the Eclipse window opens, a red <strong>X</strong> may appear to indicate
+unresolved problems. If so, follow these additional steps:</p>
+
+<ul>
+<li><p>Right-click on the project directory.</p></li>
+<li><p>In the resulting <strong>Properties</strong> dialog, select <strong>Android</strong> from the navigation pane.</p></li>
+<li><p>For the project build target, select the highest Android API level you have installed.</p></li>
+<li><p>Click <strong>OK</strong>.</p></li>
+<li><p>Select <strong>Clean</strong> from the <strong>Project</strong> menu. This should correct all the errors in the project.</p></li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20Platform%20Guide_deploy_to_device">Deploy to Device
+</a>
+</h2>
+
+<p>To push an app directly to the device, make sure USB debugging is enabled on your device as described on the
+<a class="external" href="http://developer.android.com/tools/device.html">Android Developer Site</a>,
+and use a mini USB cable to plug it into your system.</p>
+
+<p>You can push the app to the device from the command line:</p>
+
+<pre class="prettyprint"><code>$ cordova run amazon-fireos
+</code></pre>
+
+<p>Alternately within Eclipse, right-click the project and choose <strong>Run
+As â Android Application</strong>.</p>
+
+<p><strong>Note</strong>: Currently, testing via an emulator is not supported for Amazon WebView based apps.</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/3.2.0/guide_platforms_amazonfireos_plugin.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_plugin.md.html?rev=1550603&view=auto
==============================================================================
--- cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_plugin.md.html (added)
+++ cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_plugin.md.html Fri Dec 13 00:41:13 2013
@@ -0,0 +1,240 @@
+<!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="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="3.3.0">3.3.0</option>
+<option selected value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<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.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<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="ko">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Amazon Fire OS Plugins</h1>
+ <small><select><option value="Amazon%2520Fire%2520OS%2520Plugins">Amazon Fire OS Plugins</option>
+<option value="Amazon%20Fire%20OS%20Plugins_echo_amazon_fire_os_plugin_example">Â Â Â Â Â Â - Echo Amazon Fire OS Plugin Example</option>
+<option value="Amazon%20Fire%20OS%20Plugins_using_amazon_webview_in_your_plugin">Â Â Â Â Â Â - Using Amazon WebView in your plugin</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<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>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Amazon%20Fire%20OS%20Plugins">Amazon Fire OS Plugins</a></h1>
+
+<p>Follow the instructions provided in the <a href="guide_platforms_android_plugin.md.html#Android%20Plugins">Android Plugins</a> Guide for an overview of developing custom plugins.</p>
+
+<h2>
+<a name="Amazon%20Fire%20OS%20Plugins_echo_amazon_fire_os_plugin_example">Echo Amazon Fire OS Plugin Example</a>
+</h2>
+
+<p>To match the JavaScript interface's <em>echo</em> feature described in
+Application Plugins, use the <code>plugin.xml</code> to inject a <code>feature</code>
+specification to the local platform's <code>config.xml</code> file:</p>
+
+<pre class="prettyprint"><code><platform name="amazon-fireos">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Echo">
+ <param name="android-package" value="org.apache.cordova.plugin.Echo"/>
+ </feature>
+ </config-file>
+</platform>
+</code></pre>
+
+<p>Then add the following to the
+<code>src/org/apache/cordova/plugin/Echo.java</code> file:</p>
+
+<pre class="prettyprint"><code>package org.apache.cordova.plugin;
+
+import org.apache.cordova.CordovaPlugin;
+import org.apache.cordova.CallbackContext;
+
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+/**
+ * This class echoes a string called from JavaScript.
+ */
+public class Echo extends CordovaPlugin {
+
+ @Override
+ public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
+ if (action.equals("echo")) {
+ String message = args.getString(0);
+ this.echo(message, callbackContext);
+ return true;
+ }
+ return false;
+ }
+
+ private void echo(String message, CallbackContext callbackContext) {
+ if (message != null && message.length() > 0) {
+ callbackContext.success(message);
+ } else {
+ callbackContext.error("Expected one non-empty string argument.");
+ }
+ }
+}
+</code></pre>
+
+<p>If you want to reuse Android Plugin code for the Amazon Fire OS platform then modify the plugin.xml to point to the <code>android</code> specific source file. For example,</p>
+
+<pre class="prettyprint"><code><platform name="amazon-fireos">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Echo">
+ <param name="android-package" value="org.apache.cordova.plugin.Echo"/>
+ </feature>
+ </config-file>
+ <source-file src="src/android/Echo.java" target-dir="src/org/apache/cordova/plugin" />
+</platform>
+</code></pre>
+
+<p>If you want to write a customized plugin for the Amazon Fire OS platform then create a folder named <code>amazon</code> under your plugin src/ folder and modify the plugin.xml to point to the <code>amazon</code> specific source file. For example,</p>
+
+<pre class="prettyprint"><code><platform name="amazon-fireos">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Echo">
+ <param name="android-package" value="org.apache.cordova.plugin.Echo"/>
+ </feature>
+ </config-file>
+ <source-file src="src/amazon/Echo.java" target-dir="src/org/apache/cordova/plugin" />
+</platform>
+</code></pre>
+
+<h2>
+<a name="Amazon%20Fire%20OS%20Plugins_using_amazon_webview_in_your_plugin">Using Amazon WebView in your plugin</a>
+</h2>
+
+<p>Cordova for Amazon Fire OS makes use of custom Amazon WebView that is built on the open-source Chromium project. It is GPU accelerated and optimized for fluid performance on Kindle Fire.</p>
+
+<p>To understand how to best use Amazon WebView in your project, check out the <a class="external" href="https://developer.amazon.com/sdk/fire/IntegratingAWV.html">Amazon Developer Portal</a>.</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/3.2.0/guide_platforms_amazonfireos_webview.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_webview.md.html?rev=1550603&view=auto
==============================================================================
--- cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_webview.md.html (added)
+++ cordova/site/public/docs/en/3.2.0/guide_platforms_amazonfireos_webview.md.html Fri Dec 13 00:41:13 2013
@@ -0,0 +1,254 @@
+<!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="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option value="edge">edge</option>
+<option value="3.3.0">3.3.0</option>
+<option selected value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<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.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<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="ko">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Amazon Fire OS WebViews</h1>
+ <small><select><option value="Amazon%2520Fire%2520OS%2520WebViews">Amazon Fire OS WebViews</option>
+<option value="Amazon%20Fire%20OS%20WebViews_prerequisites">Â Â Â Â Â Â - Prerequisites</option>
+<option value="Amazon%20Fire%20OS%20WebViews_guide_to_using_cordovawebview_in_a_amazon_fire_os_project">Â Â Â Â Â Â - Guide to using CordovaWebView in a Amazon Fire OS Project</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<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>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Amazon%20Fire%20OS%20WebViews">Amazon Fire OS WebViews</a></h1>
+
+<p>Beginning with 3.0.0, you can use Cordova as a component in Amazon Fire OS applications. Amazon Fire OS refers to this component as <code>CordovaWebView</code>. <code>CordovaWebView</code> extends Amazon WebView that is built on the open source Chromium Project. By leveraging this feature, your web apps can utilize the latest HTML5 web standards running in a modern web runtime engine.</p>
+
+<h2>
+<a name="Amazon%20Fire%20OS%20WebViews_prerequisites">Prerequisites</a>
+</h2>
+
+<ul>
+<li><p>Cordova 3.0.0 or greater</p></li>
+<li><p>Android SDK updated to the latest SDK</p></li>
+<li><p>Amazon WebView SDK</p></li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20WebViews_guide_to_using_cordovawebview_in_a_amazon_fire_os_project">Guide to using CordovaWebView in a Amazon Fire OS Project</a>
+</h2>
+
+<ol>
+<li><p>Download and expand the <a class="external" href="https://developer.amazon.com/sdk/fire/IntegratingAWV.html#installawv">Amazon WebView SDK</a> , then copy the awv_interface.jar into <code>/framework/libs</code> directory. Create a libs/ folder if it doesn't exist.</p></li>
+<li><p><code>cd</code> into <code>/framework</code> and run <code>ant jar</code> to build the cordova jar. It creates the .jar file formed as <code>cordova-x.x.x.jar</code> in the <code>/framework</code> directory.</p></li>
+<li>
+<p>Edit your application's <code>main.xml</code> file (under <code>/res/layout</code>) to look like the following, with the <code>layout_height</code>, <code>layout_width</code> and <code>id</code> 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>. You should implement the included methods. You may wish to copy them from <code>/framework/src/org/apache/cordova/CordovaActivity.java</code>, or implement them on your own. The code fragment below shows a basic application that uses the interface. Note how the referenced view id matches the <code>id</code> attribute specified in the XML fragment shown above:</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>If you use the camera, you should also implement this:</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 is 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 have no threads to run on:</p>
+
+<pre class="prettyprint"><code> @Override
+ public ExecutorService getThreadPool() {
+ return threadPool;
+ }
+</code></pre>
+
+<ol>
+<li><p>Copy your application's HTML and JavaScript files to your Amazon Fire OS project's <code>/assets/www</code> directory.</p></li>
+<li><p>Copy <code>config.xml</code> from <code>/framework/res/xml</code> to your project's <code>/res/xml</code> directory.</p></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/edge/guide_platforms_amazonfireos_config.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_config.md.html?rev=1550603&view=auto
==============================================================================
--- cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_config.md.html (added)
+++ cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_config.md.html Fri Dec 13 00:41:13 2013
@@ -0,0 +1,211 @@
+<!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="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option selected value="edge">edge</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<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.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<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="ko">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Amazon Fire OS Configuration</h1>
+ <small></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<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>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Amazon%20Fire%20OS%20Configuration">Amazon Fire OS Configuration</a></h1>
+
+<p>The <code>config.xml</code> file controls an app's basic settings that apply
+across each application and CordovaWebView instance. This section
+details preferences that only apply to Amazon Fire OS builds. See <a href="#The%0Aconfig.xml%20File">The
+config.xml File</a> for information on global configuration options.</p>
+
+<ul>
+<li>
+<p><code>KeepRunning</code> (boolean, defaults to <code>true</code>): Determines whether the
+application stays running in the background even after a <code><a href="cordova_events_events.md.html#pause">pause</a></code>
+event fires.</p>
+
+<pre class="prettyprint"><code><preference name="KeepRunning" value="false"/>
+</code></pre>
+</li>
+<li>
+<p><code>ErrorUrl</code>: Specifies an error page that displays in response to
+standard HTTP errors in the 400-500 range. Place the specified file
+in the top-level directory containing the home page and other web
+assets.</p>
+
+<pre class="prettyprint"><code><preference name="ErrorUrl" value="error.html"/>
+</code></pre>
+</li>
+<li>
+<p><code>LoadingDialog</code>: Display a native dialog when loading the app. The
+value's format is <em>Title, Message</em></p>
+
+<pre class="prettyprint"><code><preference name="LoadingDialog" value="Please wait, the app is loading"/>
+</code></pre>
+</li>
+<li>
+<p><code>LoadingPageDialog</code>: Display a native dialog when loading sub-pages
+within an app. The value's format is <em>Title, Message</em></p>
+
+<pre class="prettyprint"><code><preference name="LoadingPageDialog" value="Please wait, the data is loading"/>
+</code></pre>
+</li>
+<li>
+<p><code>LoadUrlTimeoutValue</code> (number, default is <code>20000</code>): When loading a
+page, the amount of time to wait before throwing a timeout error.
+This example specifies 10 seconds rather than 20:</p>
+
+<pre class="prettyprint"><code><preference name="LoadUrlTimeoutValue" value="10000"/>
+</code></pre>
+</li>
+<li>
+<p><code>SplashScreen</code>: The name of the file minus its extension in the
+<code>res/drawable</code> directory. Various assets must share this common
+name in various subdirectories.</p>
+
+<pre class="prettyprint"><code><preference name="SplashScreen" value="splash"/>
+</code></pre>
+</li>
+<li>
+<p><code>SplashScreenDelay</code> (number, defaults to <code>5000</code>): The amount of
+time the splash screen image displays.</p>
+
+<pre class="prettyprint"><code><preference name="SplashScreenDelay" value="10000"/>
+</code></pre>
+</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/edge/guide_platforms_amazonfireos_index.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_index.md.html?rev=1550603&view=auto
==============================================================================
--- cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_index.md.html (added)
+++ cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_index.md.html Fri Dec 13 00:41:13 2013
@@ -0,0 +1,288 @@
+<!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="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option selected value="edge">edge</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<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.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<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="ko">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Amazon Fire OS Platform Guide</h1>
+ <small><select><option value="Amazon%2520Fire%2520OS%2520Platform%2520Guide">Amazon Fire OS Platform Guide</option>
+<option value="Amazon%20Fire%20OS%20Platform%20Guide_requirements_and_support">Â Â Â Â Â Â - Requirements and Support</option>
+<option value="Amazon%20Fire%20OS%20Platform%20Guide_installation">Â Â Â Â Â Â - Installation</option>
+<option value="Amazon%20Fire%20OS%20Platform%20Guide_open_a_project_in_the_sdk">Â Â Â Â Â Â - Open a Project in the SDK</option>
+<option value="Amazon%20Fire%20OS%20Platform%20Guide_deploy_to_device">Â Â Â Â Â Â - Deploy to Device
+</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<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>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Amazon%20Fire%20OS%20Platform%20Guide">Amazon Fire OS Platform Guide</a></h1>
+
+<p>This guide shows how to set up your SDK development environment to
+deploy Cordova apps for Amazon Fire OS devices, such as the Kindle Fire HDX.</p>
+
+<p>See the following for more detailed platform-specific information:</p>
+
+<ul>
+<li><a href="guide_platforms_amazonfireos_config.md.html#Amazon%20Fire%20OS%20Configuration">Amazon Fire OS Configuration</a></li>
+<li><a href="guide_platforms_amazonfireos_webview.md.html#Amazon%20Fire%20OS%20WebViews">Amazon Fire OS WebViews</a></li>
+<li><a href="guide_platforms_amazonfireos_plugin.md.html#Amazon%20Fire%20OS%20Plugins">Amazon Fire OS Plugins</a></li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20Platform%20Guide_requirements_and_support">Requirements and Support</a>
+</h2>
+
+<p>Developing Cordova apps for Amazon Fire OS requires the Android SDK and the Amazon WebView SDK. Check the requirements for these SDKs at the links below:</p>
+
+<ul>
+<li><p><a class="external" href="http://developer.android.com/sdk/">Android SDK System</a></p></li>
+<li><p><a class="external" href="https://developer.amazon.com/sdk/fire/IntegratingAWV.html#installawv">Amazon WebView SDK</a></p></li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20Platform%20Guide_installation">Installation</a>
+</h2>
+
+<h3>Android SDK</h3>
+
+<p>Install the Android SDK from
+<a class="external" href="http://developer.android.com/sdk/">developer.android.com/sdk</a>. You
+may be presented with a choice of where to install the SDK, otherwise
+move the downloaded <code>adt-bundle</code> tree to wherever you store
+development tools.</p>
+
+<p>For Cordova command-line tools to work, you need to include the SDK's
+<code>tools</code> and <code>platform-tools</code> directories in your PATH environment.</p>
+
+<p>On Mac, Linux or other Unix-like platforms, you can use a text editor to create or modify the
+<code>~/.bash_profile</code> file, adding a line such as the following, depending
+on where the SDK installs:</p>
+
+<pre class="prettyprint"><code>export PATH=${PATH}:/Development/adt-bundle/sdk/platform-tools:/Development/adt-bundle/sdk/tools
+</code></pre>
+
+<p>This exposes SDK tools in newly opened terminal windows. Otherwise run
+this to make them available in the current session:</p>
+
+<pre class="prettyprint"><code>$ source ~/.bash_profile
+</code></pre>
+
+<p>To modify the PATH environment on Windows 7:</p>
+
+<ul>
+<li><p>Click on the <strong>Start</strong> menu in the lower-left corner of the desktop,
+right-click on <strong>Computer</strong>, then click <strong>Properties</strong>.</p></li>
+<li><p>Click <strong>Advanced System Settings</strong> in the column on the left.</p></li>
+<li><p>In the resulting dialog box, press <strong>Environment Variables</strong>.</p></li>
+<li><p>Select the <strong>PATH</strong> variable and press <strong>Edit</strong>.</p></li>
+<li>
+<p>Append the following to the PATH based on where you installed the
+SDK, for example:</p>
+
+<pre class="prettyprint"><code>;C:\Development\adt-bundle\sdk\platform-tools;C:\Development\adt-bundle\sdk\tools
+</code></pre>
+</li>
+<li><p>Save the value and <a href="cordova_inappbrowser_inappbrowser.md.html#close">close</a> both dialog boxes.</p></li>
+</ul>
+<p>You may also need to enable Java and Ant. Open a command prompt and
+type <code>java</code>, and also type <code>ant</code>. Append to the PATH whichever fail to
+run:</p>
+
+<pre class="prettyprint"><code>;%JAVA_HOME%\bin;%ANT_HOME%\bin
+</code></pre>
+
+<h3>Amazon WebView SDK</h3>
+
+<p>Download the Amazon WebView SDK from the <a class="external" href="https://developer.amazon.com/sdk/fire/IntegratingAWV.html#installawv">Amazon Developer Portal</a>.</p>
+
+<ul>
+<li>Create a <code>libs/</code> folder in <code>~/.cordova/lib/amazon-fireos/cordova/3.1.0/</code> folder.</li>
+<li>Add the <code>awv_interface.jar</code> from the downloaded SDK to <code>~/.cordova/lib/amazon-fireos/cordova/3.1.0/libs/</code>
+</li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20Platform%20Guide_open_a_project_in_the_sdk">Open a Project in the SDK</a>
+</h2>
+
+<p>Use the <code>cordova</code> utility to set up a new project, as described in The
+Cordova The Command-line Interface. For example, in a source-code directory:</p>
+
+<pre class="prettyprint"><code>$ cordova create hello com.example.hello "HelloWorld"
+$ cd hello
+$ cordova platform add amazon-fireos
+$ cordova build
+</code></pre>
+
+<p>Once created, here's how to use the SDK to modify it:</p>
+
+<ul>
+<li><p>Launch the <strong>Eclipse</strong> application.</p></li>
+<li><p>Select the <strong>New Project</strong> menu item.</p></li>
+<li><p>Choose <strong>Android Project from Existing Code</strong> from the resulting dialog box, and press <strong>Next</strong>:
+<img src="img/guide/platforms//eclipse_new_project.png" alt="" title=""></p></li>
+<li><p>Navigate to <code>hello</code>, or whichever directory you created for the project, then to the <code>platforms/amazon-fireos</code> subdirectory.</p></li>
+<li><p>Press <strong>Finish</strong>.</p></li>
+</ul>
+<p>Once the Eclipse window opens, a red <strong>X</strong> may appear to indicate
+unresolved problems. If so, follow these additional steps:</p>
+
+<ul>
+<li><p>Right-click on the project directory.</p></li>
+<li><p>In the resulting <strong>Properties</strong> dialog, select <strong>Android</strong> from the navigation pane.</p></li>
+<li><p>For the project build target, select the highest Android API level you have installed.</p></li>
+<li><p>Click <strong>OK</strong>.</p></li>
+<li><p>Select <strong>Clean</strong> from the <strong>Project</strong> menu. This should correct all the errors in the project.</p></li>
+</ul>
+<h2>
+<a name="Amazon%20Fire%20OS%20Platform%20Guide_deploy_to_device">Deploy to Device
+</a>
+</h2>
+
+<p>To push an app directly to the device, make sure USB debugging is enabled on your device as described on the
+<a class="external" href="http://developer.android.com/tools/device.html">Android Developer Site</a>,
+and use a mini USB cable to plug it into your system.</p>
+
+<p>You can push the app to the device from the command line:</p>
+
+<pre class="prettyprint"><code>$ cordova run amazon-fireos
+</code></pre>
+
+<p>Alternately within Eclipse, right-click the project and choose <strong>Run
+As â Android Application</strong>.</p>
+
+<p><strong>Note</strong>: Currently, testing via an emulator is not supported for Amazon WebView based apps.</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/edge/guide_platforms_amazonfireos_plugin.md.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_plugin.md.html?rev=1550603&view=auto
==============================================================================
--- cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_plugin.md.html (added)
+++ cordova/site/public/docs/en/edge/guide_platforms_amazonfireos_plugin.md.html Fri Dec 13 00:41:13 2013
@@ -0,0 +1,240 @@
+<!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="Chinese" value="zh">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="English" value="en">
+<option selected value="edge">edge</option>
+<option value="3.3.0">3.3.0</option>
+<option value="3.2.0">3.2.0</option>
+<option value="3.1.0">3.1.0</option>
+<option value="3.0.0">3.0.0</option>
+<option value="2.9.0">2.9.0</option>
+<option value="2.8.0">2.8.0</option>
+<option value="2.7.0">2.7.0</option>
+<option value="2.6.0">2.6.0</option>
+<option value="2.5.0">2.5.0</option>
+<option value="2.4.0">2.4.0</option>
+<option value="2.3.0">2.3.0</option>
+<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.8.0">1.8.0</option>
+<option value="1.7.0">1.7.0</option>
+<option value="1.6.1">1.6.1</option>
+<option value="1.6.0">1.6.0</option>
+<option value="1.5.0">1.5.0</option>
+</optgroup>
+<optgroup label="French" value="fr">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="German" value="de">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Italian" value="it">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Japanese" value="ja">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<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="ko">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+<option value="2.0.0">2.0.0</option>
+</optgroup>
+<optgroup label="Russian" value="ru">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup>
+<optgroup label="Spanish" value="es">
+<option value="edge">edge</option>
+<option value="3.1.0">3.1.0</option>
+</optgroup></select></small>
+ </div>
+ <div id="subheader">
+ <h1>Amazon Fire OS Plugins</h1>
+ <small><select><option value="Amazon%2520Fire%2520OS%2520Plugins">Amazon Fire OS Plugins</option>
+<option value="Amazon%20Fire%20OS%20Plugins_echo_amazon_fire_os_plugin_example">Â Â Â Â Â Â - Echo Amazon Fire OS Plugin Example</option>
+<option value="Amazon%20Fire%20OS%20Plugins_using_amazon_webview_in_your_plugin">Â Â Â Â Â Â - Using Amazon WebView in your plugin</option></select></small>
+ </div>
+
+ <div id="sidebar">
+ <div class="vertical_divider"></div>
+ <h1>Guides</h1>
+<ul>
+<li><a href="guide_overview_index.md.html#Overview">Overview</a></li>
+<li><a href="guide_support_index.md.html#Platform%20Support">Platform Support</a></li>
+<li><a href="guide_cli_index.md.html#The%20Command-Line%20Interface">The Command-Line Interface</a></li>
+<li><a href="guide_platforms_index.md.html#Platform%20Guides">Platform Guides</a></li>
+<li><a href="plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins">Using Plugman to Manage Plugins</a></li>
+<li><a href="config_ref_index.md.html#The%20config.xml%20File">The config.xml File</a></li>
+<li><a href="config_ref_images.md.html#Icons%20and%20Splash%20Screens">Icons and Splash Screens</a></li>
+<li><a href="guide_hybrid_webviews_index.md.html#Embedding%20WebViews">Embedding WebViews</a></li>
+<li><a href="guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide">Plugin Development Guide</a></li>
+<li><a href="guide_appdev_privacy_index.md.html#Privacy%20Guide">Privacy Guide</a></li>
+<li><a href="guide_appdev_whitelist_index.md.html#Whitelist%20Guide">Whitelist Guide</a></li>
+<li><a href="_index.html">Keyword Index</a></li>
+</ul>
+<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>
+</div>
+
+ <div id="scrollable">
+ <div id="content">
+ <h1><a name="Amazon%20Fire%20OS%20Plugins">Amazon Fire OS Plugins</a></h1>
+
+<p>Follow the instructions provided in the <a href="guide_platforms_android_plugin.md.html#Android%20Plugins">Android Plugins</a> Guide for an overview of developing custom plugins.</p>
+
+<h2>
+<a name="Amazon%20Fire%20OS%20Plugins_echo_amazon_fire_os_plugin_example">Echo Amazon Fire OS Plugin Example</a>
+</h2>
+
+<p>To match the JavaScript interface's <em>echo</em> feature described in
+Application Plugins, use the <code>plugin.xml</code> to inject a <code>feature</code>
+specification to the local platform's <code>config.xml</code> file:</p>
+
+<pre class="prettyprint"><code><platform name="amazon-fireos">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Echo">
+ <param name="android-package" value="org.apache.cordova.plugin.Echo"/>
+ </feature>
+ </config-file>
+</platform>
+</code></pre>
+
+<p>Then add the following to the
+<code>src/org/apache/cordova/plugin/Echo.java</code> file:</p>
+
+<pre class="prettyprint"><code>package org.apache.cordova.plugin;
+
+import org.apache.cordova.CordovaPlugin;
+import org.apache.cordova.CallbackContext;
+
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+/**
+ * This class echoes a string called from JavaScript.
+ */
+public class Echo extends CordovaPlugin {
+
+ @Override
+ public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
+ if (action.equals("echo")) {
+ String message = args.getString(0);
+ this.echo(message, callbackContext);
+ return true;
+ }
+ return false;
+ }
+
+ private void echo(String message, CallbackContext callbackContext) {
+ if (message != null && message.length() > 0) {
+ callbackContext.success(message);
+ } else {
+ callbackContext.error("Expected one non-empty string argument.");
+ }
+ }
+}
+</code></pre>
+
+<p>If you want to reuse Android Plugin code for the Amazon Fire OS platform then modify the plugin.xml to point to the <code>android</code> specific source file. For example,</p>
+
+<pre class="prettyprint"><code><platform name="amazon-fireos">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Echo">
+ <param name="android-package" value="org.apache.cordova.plugin.Echo"/>
+ </feature>
+ </config-file>
+ <source-file src="src/android/Echo.java" target-dir="src/org/apache/cordova/plugin" />
+</platform>
+</code></pre>
+
+<p>If you want to write a customized plugin for the Amazon Fire OS platform then create a folder named <code>amazon</code> under your plugin src/ folder and modify the plugin.xml to point to the <code>amazon</code> specific source file. For example,</p>
+
+<pre class="prettyprint"><code><platform name="amazon-fireos">
+ <config-file target="config.xml" parent="/*">
+ <feature name="Echo">
+ <param name="android-package" value="org.apache.cordova.plugin.Echo"/>
+ </feature>
+ </config-file>
+ <source-file src="src/amazon/Echo.java" target-dir="src/org/apache/cordova/plugin" />
+</platform>
+</code></pre>
+
+<h2>
+<a name="Amazon%20Fire%20OS%20Plugins_using_amazon_webview_in_your_plugin">Using Amazon WebView in your plugin</a>
+</h2>
+
+<p>Cordova for Amazon Fire OS makes use of custom Amazon WebView that is built on the open-source Chromium project. It is GPU accelerated and optimized for fluid performance on Kindle Fire.</p>
+
+<p>To understand how to best use Amazon WebView in your project, check out the <a class="external" href="https://developer.amazon.com/sdk/fire/IntegratingAWV.html">Amazon Developer Portal</a>.</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>