How to set application as a watchface

An example showing how to set application as a watchface using Tizen 2.3.
1
2
3
4
5
6
7
8
9
10
11
12
<widget id="http://yourdomain/app" version="1.0.0" viewmodes="maximized">
  <tizen:application id="hash.app" package="hash" required_version="2.1" />
  
  <!-- ADD THE LINE ABOVE -->
  <tizen:category name="com.samsung.wmanager.WATCH_CLOCK"/>
  
  <content src="index.html" />
  <feature name="http://tizen.org/feature/screen.size.all" />
  <icon src="icon.png" height="127" width="127" />
  <name>app</name>
  <tizen:setting background-support="disable" encryption="disable" hwkey-event="enable" />
</widget>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX