cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [3/3] docs commit: adding getting started guide for Bada
Date Thu, 26 Apr 2012 07:33:35 GMT
adding getting started guide for Bada


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/e4292a37
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/e4292a37
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/e4292a37

Branch: refs/heads/master
Commit: e4292a37d65eddde6055e25d68cf338041ef3561
Parents: 4b23832
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Thu Apr 26 00:28:15 2012 -0700
Committer: Anis Kadri <anis.kadri@gmail.com>
Committed: Thu Apr 26 00:28:15 2012 -0700

----------------------------------------------------------------------
 .../guide/getting-started/bada/.index.md.swp       |  Bin 0 -> 12288 bytes
 .../1.7.0rc1/guide/getting-started/bada/index.md   |   74 +++++++++++++++
 2 files changed, 74 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e4292a37/docs/en/1.7.0rc1/guide/getting-started/bada/.index.md.swp
----------------------------------------------------------------------
diff --git a/docs/en/1.7.0rc1/guide/getting-started/bada/.index.md.swp b/docs/en/1.7.0rc1/guide/getting-started/bada/.index.md.swp
new file mode 100644
index 0000000..a5e3cf2
Binary files /dev/null and b/docs/en/1.7.0rc1/guide/getting-started/bada/.index.md.swp differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/e4292a37/docs/en/1.7.0rc1/guide/getting-started/bada/index.md
----------------------------------------------------------------------
diff --git a/docs/en/1.7.0rc1/guide/getting-started/bada/index.md b/docs/en/1.7.0rc1/guide/getting-started/bada/index.md
new file mode 100644
index 0000000..5e35a07
--- /dev/null
+++ b/docs/en/1.7.0rc1/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!
+-----


Mime
View raw message