Getting Started with Bada

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

2. Install SDK + Cordova

3. Setup New Project

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

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

5B. Deploy to Device

Bada 2.x: Right click on your project's folder and select Run As -> bada Target Web Application

Bada 1.2: - Right click on your project's folder and select Build configurations -> Set Active -> Target-Debug - Right click on your project's folder and select Run As -> bada Target Application. You need to close the emulator every time you update your app!

Done!