license: 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.
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.
In Bada IDE, select File -> Import project -> Bada C++ / Flash Project.
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”
Click “Finish”
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 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>
Bada 2.x: Right click on your project s folder and select Run As -> bada Emulator Web Application
Bada 1.2: Right click on your project' folder and select Build configurations -> Set Active -> Simulator-Debug
Right click on your project's folder and select Run As -> bada Simulator Application. You need to close the emulator every time you update your app!
Bada 2.x: Right click on your project's folder and select Run As -> bada Target Web Application
Bada 1.2: