incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/2] docs commit: adding bada getting started to edge
Date Thu, 26 Apr 2012 08:46:47 GMT
adding bada getting started to edge


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/27631bce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/27631bce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/27631bce

Branch: refs/heads/master
Commit: 27631bcee26cf0c9234b6c625cf2a69737fcb6e1
Parents: 6ae87da
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Thu Apr 26 01:20:26 2012 -0700
Committer: Anis Kadri <anis.kadri@gmail.com>
Committed: Thu Apr 26 01:20:26 2012 -0700

----------------------------------------------------------------------
 docs/en/edge/guide/getting-started/bada/index.md |   74 +++++++++++++++++
 docs/en/edge/guide/getting-started/index.md      |    3 +-
 2 files changed, 76 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/27631bce/docs/en/edge/guide/getting-started/bada/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/getting-started/bada/index.md b/docs/en/edge/guide/getting-started/bada/index.md
new file mode 100644
index 0000000..5e35a07
--- /dev/null
+++ b/docs/en/edge/guide/getting-started/bada/index.md
@@ -0,0 +1,74 @@
+Getting Started with Bada
+=========================
+
+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.
+
+1. Requirements
+---------------
+
+- Windows
+- You need the bada 1.2 SDK to use cordova-bada (which is no longer available on Samsung&apos;s
website)
+
+2. Install SDK + Cordova
+-------------------------
+
+- Download and install the [Bada SDK](http://developer.bada.com) (Windows only). 
+- Donwload the latest copy of [Cordova](http://phonegap.com/download) and extract its contents.
We will be working with the bada directory.
+
+
+3. Setup New Project
+--------------------
+- In Bada IDE, select _File_ -> Import project -> Bada C++ / Flash Project. 
+    - Note: Bada 1.2 select "Bada Application Project"
+    
+    ![](img/guide/getting-started/bada/import_bada_project.png)
+
+- Make sure "Select root directory is checked" and then click Browse
+- 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"
+    
+    ![](img/guide/getting-started/bada/import_bada_project.png)
+
+- Click "Finish"
+
+    ![](img/guide/getting-started/bada/bada_project.png)
+ 
+4. Hello World
+--------------
+
+**Bada 2.x**: Your HTML/CSS/Javascript code lives under the Res/ folder. Make sure your index.html
contains the following two lines in the <head> section.
+
+
+        <link href="osp://webapp/css/style.css" rel="stylesheet" type="text/css" />
+        <script type="text/javascript" src="osp://webapp/js/webapp_core.js"></script>
+
+**Bada 1.2**: Your HTML/CSS/Javascript code lives under the Res/ folder. Make sure your index.html
contains the following line.
+
+        <script type="text/javascript" src="cordova/cordova.js"> </script>
+
+5A. Deploy to Simulator
+-----------------------
+
+- **Bada 2.x**: Right click on your project s folder and select Run As -&gt; bada Emulator
Web Application 
+    
+    ![](img/guide/getting-started/bada/bada_1_run.png)
+
+- **Bada 1.2**: Right click on your project&apos; folder and select Build configurations
-&gt; Set Active -&gt; Simulator-Debug
+
+    ![](img/guide/getting-started/bada/bada_set_target.png)
+
+- Right click on your project&apos;s folder and select Run As -&gt; bada Simulator
Application. You need to close the emulator every time you update your app!
+
+5B. Deploy to Device
+--------------------
+
+- Make sure your device is properly configured 
+
+**Bada 2.x**: Right click on your project&apos;s folder and select Run As -&gt; bada
Target Web Application
+
+**Bada 1.2**:
+- Right click on your project&apos;s folder and select Build configurations -> Set
Active -> Target-Debug
+- Right click on your project&apos;s folder and select Run As -> bada Target Application.
You need to close the emulator every time you update your app!
+
+
+Done!
+-----

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/27631bce/docs/en/edge/guide/getting-started/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/getting-started/index.md b/docs/en/edge/guide/getting-started/index.md
index dd04ef8..c6bb549 100644
--- a/docs/en/edge/guide/getting-started/index.md
+++ b/docs/en/edge/guide/getting-started/index.md
@@ -6,4 +6,5 @@ Getting Started Guides
 - Getting Started with iOS
 - Getting Started with Symbian
 - Getting Started with WebOS
-- Getting Started with Windows Phone
\ No newline at end of file
+- Getting Started with Windows Phone
+- Getting Started with Bada


Mime
View raw message