How to create your own samsung bada widgets?


Samsung bada is a brand new operating system launched by Samsung in the December 2009. The term bada is a Korean word and means ocean. The operating system has been designed to be used in smart phones and thus enable rich user experience.

The key feature of Samsung bada is that it has a simple and easy to use platform coupled with innovative design that can be used to create personal widgets.

In order to create widgets, you need to understand what widgets are. Widgets are nothing but small applications that are seen as an icon on the main screen. Similar to the webpage, they are also written in html format. The inner structure of a bada widget comprises of three foundation folders- css - for storing of styles, js – for storing of java scripts and images that is used for storing of images. There are three basic files and very important because bada widgets run through these files.



Inside the Config.xml file there are various fields like id, version, width, height, title, description, icon, access network and content. These are basic descriptions of various components, and we must save this file in UTF-8 format. So now we are done with the configuration and now need to work on the html task. Bada widgets are little limited in css, html and dot support. Instead there are events such as onClick (), onFocus(),onMouseUp() and onBlur(). So whatever buttons we need to create, we need to use the above mentioned functions or events. After this you need to connect various external files containing the styles files and java scripts. Then you need to pack these files into a widget file that is .wgt format. You can make use of any zip packer having a deflate option and later on just change the extension to .wgt from .zip. This step completes the process of creation of a widget, and it needs to be installed now. For the installation, you need to copy the widget file and paste it on "My files" and you are done.

Samsung SDK for Bada Developers



Posted by James on 2010-09-07 in the category " Tools "