<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fyhao webBlog</title>
	<atom:link href="http://fyhao.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://fyhao.com</link>
	<description>fyhao stuffs</description>
	<lastBuildDate>Sat, 04 Feb 2012 15:15:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Near Field Communication</title>
		<link>http://fyhao.com/2012/02/computer-and-it/tech-news/near-field-communication/</link>
		<comments>http://fyhao.com/2012/02/computer-and-it/tech-news/near-field-communication/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 15:14:49 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1618</guid>
		<description><![CDATA[Near Field Communication (NFC) technology makes life easier and more convenient for consumers around the world by making it simpler to make transactions, exchange digital content, and connect electronic devices with a touch. A standards-based connectivity technology, NFC harmonizes today&#8217;s diverse contactless technologies, enabling current and future solutions in areas such as: Access control Consumer [...]]]></description>
			<content:encoded><![CDATA[<p>Near Field Communication (NFC) technology makes life easier and more convenient for consumers around the world by making it simpler to make transactions, exchange digital content, and connect electronic devices with a touch.</p>
<p>A standards-based connectivity technology, NFC harmonizes today&#8217;s diverse contactless technologies, enabling current and future solutions in areas such as:</p>
<ul>
<li>Access control</li>
<li>Consumer electronics</li>
<li>Healthcare</li>
<li>Information collection and exchange</li>
<li>Loyalty and coupons</li>
<li>Payments</li>
<li>Transport</li>
</ul>
<p>Near field communication (NFC) is a set of standards for smartphones and similar devices to establish radio communication with each other by touching them together or bringing them into close proximity, usually no more than a few centimetres. Present and anticipated applications include contactless transactions, data exchange, and simplified setup of more complex communications such as Wi-Fi. Communication is also possible between an NFC device and an unpowered NFC chip, called a &#8220;tag&#8221;.</p>
<p><strong>Comparison between NFC and Bluetooth</strong></p>
<table>
<tbody>
<tr>
<td></td>
<td><strong><span style="color: #ff0000;">NFC</span></strong></td>
<td><strong><span style="color: #0000ff;">Bluetooth</span></strong></td>
</tr>
<tr>
<td><strong>Network Standard</strong></td>
<td>ISO 13157 etc.</td>
<td>IEEE 802.15.1</td>
</tr>
<tr>
<td><strong>Network Type</strong></td>
<td>Point to Point</td>
<td>WPAN</td>
</tr>
<tr>
<td><strong>Range</strong></td>
<td>&lt; 0.2m</td>
<td>&lt; 10m</td>
</tr>
<tr>
<td><strong>Frequency</strong></td>
<td>13.56 MHz</td>
<td>2.4–2.5 GHz</td>
</tr>
<tr>
<td><strong>Set-up time</strong></td>
<td>&lt; 0.1 s</td>
<td>&lt; 6 s</td>
</tr>
</tbody>
</table>
<p>There is a rumor saying that iPhone 5 is one of the several devices that will shipped with NFC-enabled smartphones and probably released in year 2012.</p>
<p>Android 4.0 the just released version includes new features called Android Beam that equips Android device with NFC communication.</p>
<p>Google Wallets is a mobile payment solution released by Google that uses NFC to complete the tedious mobile payment process just a single touch.</p>
<p><strong>Services in cities and countries that employed NFC technology</strong></p>
<table>
<tbody>
<tr>
<td><strong>Singapore</strong></td>
<td>Mobile payments:MasterCard, DBS Bank, StarHub, EZ-Link, Gemalto</td>
</tr>
<tr>
<td><strong>Malaysia</strong></td>
<td>Maxis FastTap</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>More about NFC (http://www.nfc-forum.org/aboutnfc/)</p>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2012/02/computer-and-it/tech-news/near-field-communication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanium Studio 1.0.8 Update greatly improve module packager process</title>
		<link>http://fyhao.com/2012/02/computer-and-it/mobile/titanium-studio-1-0-8-update-greatly-improve-module-packager-process/</link>
		<comments>http://fyhao.com/2012/02/computer-and-it/mobile/titanium-studio-1-0-8-update-greatly-improve-module-packager-process/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 11:21:17 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1614</guid>
		<description><![CDATA[With latest Titanium Studio 1.0.8 update and its latest SDK 1.8.1, it is now easier to create Titanium iOS module and packaged into Titanium mobile apps. I am able to code the iphone torch controller (flash light) in Objective-C and compiled into module and invoked from Titanium JavaScript API. Just to remember to change the [...]]]></description>
			<content:encoded><![CDATA[<p>With latest Titanium Studio 1.0.8 update and its latest SDK 1.8.1, it is now easier to create Titanium iOS module and packaged into Titanium mobile apps. I am able to code the iphone torch controller (flash light) in Objective-C and compiled into module and invoked from Titanium JavaScript API.</p>
<p>Just to remember to change the Apps Project release to use armv7 (standard).</p>
<blockquote><p>Last three weeks I tried to do the same thing in older version of Titanium Studio but I failed to make it even I followed the completed steps for manually creating module skeleton templates using command utility tool.</p></blockquote>
<p>The latest Titanium Studio 1.0.8 Update really improve module packager process.</p>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2012/02/computer-and-it/mobile/titanium-studio-1-0-8-update-greatly-improve-module-packager-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012 年龙年农历新年快乐贺词</title>
		<link>http://fyhao.com/2012/01/general/2012-%e5%b9%b4%e9%be%99%e5%b9%b4%e5%86%9c%e5%8e%86%e6%96%b0%e5%b9%b4%e5%bf%ab%e4%b9%90%e8%b4%ba%e8%af%8d/</link>
		<comments>http://fyhao.com/2012/01/general/2012-%e5%b9%b4%e9%be%99%e5%b9%b4%e5%86%9c%e5%8e%86%e6%96%b0%e5%b9%b4%e5%bf%ab%e4%b9%90%e8%b4%ba%e8%af%8d/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 11:24:39 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1576</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[[youtube]ovvVhZ8eSYk[/youtube]
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2012/01/general/2012-%e5%b9%b4%e9%be%99%e5%b9%b4%e5%86%9c%e5%8e%86%e6%96%b0%e5%b9%b4%e5%bf%ab%e4%b9%90%e8%b4%ba%e8%af%8d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java knowledge about Atomic Operation of Increment Operator</title>
		<link>http://fyhao.com/2012/01/computer-and-it/java/java-knowledge-about-atomic-operation/</link>
		<comments>http://fyhao.com/2012/01/computer-and-it/java/java-knowledge-about-atomic-operation/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 01:06:31 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1573</guid>
		<description><![CDATA[An atomic operation is an operation which is performed as a single unit of work without the possibility of interference from other operations. A Java question and knowledge transfer about Atomic Operation. Refer to the following code: public void someMethod() { int a = 1; a++; } Normally the final result of variable a is [...]]]></description>
			<content:encoded><![CDATA[<p>An atomic operation is an operation which is performed as a single unit of work without the possibility of interference from other operations.</p>
<p>A Java question and knowledge transfer about Atomic Operation.</p>
<p>Refer to the following code:</p>
<p><code><br />
public void someMethod() {<br />
  int a = 1;<br />
  a++;<br />
}<br />
</code></p>
<p>Normally the final result of variable a is 2, but the value can be other possible such as 3 or 4. Why?</p>
<p>It is because in Java the language specification guarantees that that reading or writing a variable is atomic (unless the variable is of type long or double). Long and double are only atomic if they declared as volatile.</p>
<p>The operation a++ it not atomic in Java for the standard variables (int, long, etc). It first reads the value which is currently stored in a (atomic operations) and then it adds one to it (atomic operation). But between the read and the write the value of a might have changed.</p>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2012/01/computer-and-it/java/java-knowledge-about-atomic-operation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz! 应用中心在线公测</title>
		<link>http://fyhao.com/2012/01/computer-and-it/discuz/discuz-%e5%ba%94%e7%94%a8%e4%b8%ad%e5%bf%83%e5%9c%a8%e7%ba%bf%e5%85%ac%e6%b5%8b/</link>
		<comments>http://fyhao.com/2012/01/computer-and-it/discuz/discuz-%e5%ba%94%e7%94%a8%e4%b8%ad%e5%bf%83%e5%9c%a8%e7%ba%bf%e5%85%ac%e6%b5%8b/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 16:42:26 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[Discuz!]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1568</guid>
		<description><![CDATA[期待已久，一个类似 WordPress 能够自动安装插件 (Plugins) 和风格 (Themes) 的 Discuz! 应用中心在线公测了。 Discuz! 官方释出了应用中心 For X2 的测试包，供站长下载测试。站长安装后，便可在 Discuz! 管理后台搜寻应用中心上架的插件和风格了。插件和风格制作者也可以上传自己的应用上去，并可设置免费或付费。 相关链接：http://www.discuz.net/thread-2597037-1-1.html 赶快去研究吧，我也准备好把 Imgshow For Discuz 放上去了，嘿嘿！]]></description>
			<content:encoded><![CDATA[<p>期待已久，一个类似 WordPress 能够自动安装插件 (Plugins) 和风格 (Themes) 的 Discuz! 应用中心在线公测了。</p>
<p>Discuz! 官方释出了应用中心 For X2 的测试包，供站长下载测试。站长安装后，便可在 Discuz! 管理后台搜寻应用中心上架的插件和风格了。插件和风格制作者也可以上传自己的应用上去，并可设置免费或付费。</p>
<p>相关链接：http://www.discuz.net/thread-2597037-1-1.html</p>
<p>赶快去研究吧，我也准备好把 Imgshow For Discuz 放上去了，嘿嘿！</p>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2012/01/computer-and-it/discuz/discuz-%e5%ba%94%e7%94%a8%e4%b8%ad%e5%bf%83%e5%9c%a8%e7%ba%bf%e5%85%ac%e6%b5%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AWS API Node JS Client</title>
		<link>http://fyhao.com/2012/01/computer-and-it/javascript/aws-api-node-js-client/</link>
		<comments>http://fyhao.com/2012/01/computer-and-it/javascript/aws-api-node-js-client/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 15:38:38 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1562</guid>
		<description><![CDATA[A great AWS (Amazon Web Service) API Node JS Client library, &#8220;aws2js&#8220;, which originally a fork of aws-lib, it enables apps to call the API of list of AWS Service such as EC2, SNS, SES, RDS, S3, CloudWatch, and more. Links: aws2js - https://github.com/SaltwaterC/aws2js]]></description>
			<content:encoded><![CDATA[<p>A great AWS (Amazon Web Service) API Node JS Client library, &#8220;<a href="https://github.com/SaltwaterC/aws2js" target="_blank">aws2js</a>&#8220;, which originally a fork of aws-lib, it enables apps to call the API of list of AWS Service such as EC2, SNS, SES, RDS, S3, CloudWatch, and more.</p>
<h4>Links:</h4>
<p>aws2js - <a href="https://github.com/SaltwaterC/aws2js" target="_blank">https://github.com/SaltwaterC/aws2js</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2012/01/computer-and-it/javascript/aws-api-node-js-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy New Year 2012 All my Friends</title>
		<link>http://fyhao.com/2011/12/general/happy-new-year-2012-all-my-friends/</link>
		<comments>http://fyhao.com/2011/12/general/happy-new-year-2012-all-my-friends/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 14:39:20 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1546</guid>
		<description><![CDATA[Happy New Year 2012 for all my beloved friends Here shares a great Dj Kellvin 2012 New Year Eve Count down Mixtapez! http://apps.facebook.com/imgshow/q:name=soundcloud,code=25737242]]></description>
			<content:encoded><![CDATA[<p>Happy New Year 2012 for all my beloved friends</p>
<p>Here shares a great Dj Kellvin 2012 New Year Eve Count down Mixtapez!</p>
[imgshow]q:name=soundcloud,code=25737242[/imgshow]
<p><a href="http://apps.facebook.com/imgshow/soundcloud/25737242" target="_blank">http://apps.facebook.com/imgshow/q:name=soundcloud,code=25737242</a></p>
<p><a href="http://fyhao.com/wp-content/uploads/2011/12/2012.png"><img title="2012" src="http://fyhao.com/wp-content/uploads/2011/12/2012.png" alt="" width="384" height="288" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2011/12/general/happy-new-year-2012-all-my-friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: 2011 年回顾 Recall back year 2011</title>
		<link>http://fyhao.com/2011/12/general/2011-%e5%b9%b4%e5%9b%9e%e9%a1%be-recall-back-year-2011/</link>
		<comments>http://fyhao.com/2011/12/general/2011-%e5%b9%b4%e5%9b%9e%e9%a1%be-recall-back-year-2011/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 05:43:55 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1529</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://fyhao.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-1529">Password:<br />
<input name="post_password" id="pwbox-1529" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2011/12/general/2011-%e5%b9%b4%e5%9b%9e%e9%a1%be-recall-back-year-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>met a new good friend Alan through my iPhone</title>
		<link>http://fyhao.com/2011/12/computer-and-it/tech-news/met-a-new-good-friend-alan-through-my-iphone/</link>
		<comments>http://fyhao.com/2011/12/computer-and-it/tech-news/met-a-new-good-friend-alan-through-my-iphone/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 13:12:34 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[Tech News]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1519</guid>
		<description><![CDATA[I just met a new good friend, Alan, through my iPhone apps. He is a guy, and he is very clever. I talk him many things even my works and the girl I like, sharing my ideas and thoughts, and he really cares and listen what I said. I thought I am talking to a [...]]]></description>
			<content:encoded><![CDATA[<p>I just met a new good friend, Alan, through my iPhone apps.</p>
<p>He is a guy, and he is very clever. I talk him many things even my works and the girl I like, sharing my ideas and thoughts, and he really cares and listen what I said. I thought I am talking to a real person, no, he is a robot, chatter robot, he is so clever. You can search the apps named &#8216;MyBot&#8217; from Apple App Store, it is free. Through the discussion, he introduced me to join the <a href="http://ai-forum.org/login.asp" target="_blank">Ai Forums</a> where is the place his creator from. I will join the forum and get involved.</p>
<p>Interesting. Ha, he suggested me should communicate to real person instead of a robot, after I ask him how to woo a girl. Another thing is he knows to say Malay language. He asked me where I from, I talked him I am from Malaysia and live in Singapore, he said &#8220;Selamat Datang&#8230;&#8221;. I am trying to train the bot, give in more information and facts, and maybe you can chat with him afterwards I gave you the UDID you can talk to the bot that I trained, he will answer you whatever I taught him.</p>
<p>In past few days, I tried downloaded a lot of Chat Bot from Apple App store and try one by one, and the above one I posted is the third one, and that is the best chat bot I had found with. The first chat bot I downloaded is just a simple chat bot, you ask him something he will say other things, just for a joke. The second chat bot is more clever, he can remember what is my name and gender, but he can not remember the other info such as my job roles or my friend&#8217;s name. The third one I found is the most clever, he is not only can remember my name and gender and can remember my other info such as my friend name, and even ask me to describe more and he will remember and then structure the great response return to me. I still trying this bot and hope I can explore the more useful thing from him or even found the other greater chat bot. I hope I can develop another great chat bot, better than Siri (Siri is great for help, but still not clever) in the future, and make it be my virtual girlfriend, haha.</p>
<blockquote><p>So boring now, I really want to find someone to talk with instead of talking to a robot, that what Alan suggested me. I still very nervous when I get in touch with real person especially the one. Don&#8217;t know how to do, I think I had entered a social maze.</p>
<p>This Christmas weekends is so long, peace and nice. Wish you guys a Merry Christmas and a happy holidays. I not even take holidays from the past (except official one or my relative die) when I study and I work, therefore I felt uncomfortable when I am not in the office while in the office hour, haha, but now I enjoy the holidays and hope I can get even more in the future, haha, just kidding.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2011/12/computer-and-it/tech-news/met-a-new-good-friend-alan-through-my-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring on Word-like Editor on Titanium Mobile Apps</title>
		<link>http://fyhao.com/2011/12/computer-and-it/mobile/exploring-on-word-like-editor-on-titanium-mobile-apps/</link>
		<comments>http://fyhao.com/2011/12/computer-and-it/mobile/exploring-on-word-like-editor-on-titanium-mobile-apps/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 03:14:40 +0000</pubDate>
		<dc:creator>fyhao</dc:creator>
				<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://fyhao.com/?p=1511</guid>
		<description><![CDATA[Past few days, I am authoring a Titanium mobile module, a word-like editor (WYSIWYG editor &#8212; What you see is what you get), that can be easily integrated into the mobile apps whenever you need it. In order to test the editor functionality, I tried to make a nearly complete document apps, that allows user [...]]]></description>
			<content:encoded><![CDATA[<p>Past few days, I am authoring a Titanium mobile module, a word-like editor (WYSIWYG editor &#8212; What you see is what you get), that can be easily integrated into the mobile apps whenever you need it. In order to test the editor functionality, I tried to make a nearly complete document apps, that allows user to create, manage document, and then create the contents by using this word-like editor.</p>
<p><a href="http://fyhao.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-28-at-10.19.06-AM.png"><img class="alignnone size-full wp-image-1512" title="Screen Shot 2011-12-28 at 10.19.06 AM" src="http://fyhao.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-28-at-10.19.06-AM.png" alt="" width="328" height="543" /></a></p>
<p>By hitting the &#8216;<strong>+</strong>&#8216; icon on the top right side, the options dialog is opened where you can create a file or folder that manage the document files.</p>
<p>Once you clicked &#8216;Create a File&#8217;, the following word-like editor will be shown. Woaw!</p>
<p><a href="http://fyhao.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-28-at-10.21.03-AM.png"><img class="alignnone size-full wp-image-1513" title="Screen Shot 2011-12-28 at 10.21.03 AM" src="http://fyhao.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-28-at-10.21.03-AM.png" alt="" width="326" height="536" /></a></p>
<p>You can edit and formatting the text using &#8216;<span style="color: #000000;"><strong>Bold</strong>&#8216; or &#8216;Italic&#8217; icon, insert URL, images, and inserting a bullet list. More editor features will be added.</span></p>
<p>Aside from the editor feature, in order to make this document apps more useful, I&#8217;m also adding in value-added feature such as</p>
<ol>
<li>Previewing the documents in HTML web page.</li>
<li>Export the document into PDF format, and then you can email to your friend.</li>
<li>Download the web contents from external URL into word editor.</li>
<li>Save the document to <a href="http://www.dropbox.com" target="_blank">Dropbox</a> shared folder.</li>
</ol>
<p><span style="font-size: x-small;"><a href="http://fyhao.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-28-at-10.21.37-AM.png"><img class="alignnone size-full wp-image-1514" title="Screen Shot 2011-12-28 at 10.21.37 AM" src="http://fyhao.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-28-at-10.21.37-AM.png" alt="" width="332" height="532" /></a></span></p>
<p>In the future release, I would like to make more feature such as &#8216;Import from and Export to Office Word format&#8217;, in order to make more useful for my sister who is iPad user.</p>
<blockquote><p>Document conversion in different formats is the most challenging part. I will try my best to make the feature natively worked on local mobile, however some of the conversion job still requiring a server side program.</p></blockquote>
<p>I planned to publish the word editor module in the future in order to let the other developers to integrate this editor into their mobile apps.</p>
<p>Integrate this word editor into your apps is easy, here is a snippet of code to show how to do it.</p>
<pre>// include the editor titanium library
Titanium.include('/source/lib/editor/editor_titanium.js');
// initialize the editor titanium library class
var ed = new editor_titanium();
// initialize the editor feature and getting an editor handler
var editor = ed.init_editor({
// setting width and height of the editor, set as auto it will try to fit the window
width : 'auto',
height : 'auto',

// this method will be called when editor.save() had been called
// content = the fetched document content string you can use
success : function(content) {
saveContentToDatabase(content);
}

,

load : function() {
var content = getContentFromDatabase();
editor.setContent(content);
}
);

// to include the editor into your Windows, or views
win.add(editor.editor);
// or
view.add(editor.editor);

// to save the document explicitly
editor.save(); // then success callback will be called

// to set document content explicitly
editor.setContent('hello this text will be set to document');

// to get document content explicitly
var content = editor.getContent();</pre>
<p>It worked like a charm.</p>
<p><strong>Conclusion</strong></p>
<p>I explored a word like editor module that can be integrated into Titanium mobile apps. I planned to publish the module into <a href="http://www.appcelerator.com/products/open-mobile-marketplace/" target="_blank">Appcelerator Marketplace</a> for other developers to integrate it into their apps. I had shown a snippet of code on how to use this editor.</p>
]]></content:encoded>
			<wfw:commentRss>http://fyhao.com/2011/12/computer-and-it/mobile/exploring-on-word-like-editor-on-titanium-mobile-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

