<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Palm Developer Network Blog</title>
	
	<link>http://pdnblog.palm.com</link>
	<description>News about developing Palm apps</description>
	<pubDate>Sat, 14 Nov 2009 21:19:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/pdnblog" type="application/rss+xml" /><feedburner:emailServiceId>pdnblog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Mojo SDK 1.3.1 Now Available, featuring Pixi emulator support and docs enhancements</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/ugxViPyf9jw/</link>
		<comments>http://pdnblog.palm.com/2009/11/mojo-sdk-131-now-available-featuring-pixi-emulator-support-and-docs-enhancements/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 21:19:21 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[Developing on webOS]]></category>

		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=492</guid>
		<description><![CDATA[Now that Palm Pixi is on the verge of shipping, we&#8217;ve released both webOS version 1.3.1 and the new version of the Mojo Software Development Kit.
The highlights of the Mojo SDK version 1.3.1 release are the following;

Enhanced Pixi support in emulator
API to keep screen from auto-dimming
Auto-generation of app Help / Support scene
Numerous framework doc enhancements

Elaborating [...]]]></description>
			<content:encoded><![CDATA[<p>Now that Palm Pixi is on the verge of shipping, we&#8217;ve released both webOS version 1.3.1 and the new version of the Mojo Software Development Kit.</p>
<p>The highlights of the Mojo SDK version 1.3.1 release are the following;</p>
<ul>
<li>Enhanced Pixi support in emulator</li>
<li>API to keep screen from auto-dimming</li>
<li>Auto-generation of app Help / Support scene</li>
<li>Numerous framework doc enhancements</li>
</ul>
<p>Elaborating a bit on the last item, we&#8217;ve heard the developer community&#8217;s feedback about webOS docs loud and clear. You&#8217;ll see the first efforts to expand, clarify, and improve quality of the docs with this release. Notably, we&#8217;ve provided new step-by-step installation instructions, with more thorough information about how to get your system ready before you download and install the SDK. Start on our <a href="http://developer.palm.com/index.php?option=com_content&amp;view=article&amp;id=1788">Download</a> page by selecting the version of the SDK you&#8217;d like to use.</p>
<p>For more complete information about Mojo SDK Version 1.3.1, see the <a href="http://developer.palm.com/index.php?option=com_content&amp;view=article&amp;id=1588">Release Notes</a> on webOSdev.</p>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/ugxViPyf9jw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/11/mojo-sdk-131-now-available-featuring-pixi-emulator-support-and-docs-enhancements/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/11/mojo-sdk-131-now-available-featuring-pixi-emulator-support-and-docs-enhancements/</feedburner:origLink></item>
		<item>
		<title>What’s Happening in webOSLand</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/H0pF6UGMjys/</link>
		<comments>http://pdnblog.palm.com/2009/11/whats-happening-in-webosland-5/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 20:00:07 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[What's Happening in webOS]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=482</guid>
		<description><![CDATA[What&#8217;s happening in webOSland is a collection of interesting links to articles and conversations about webOS and webOS development. If you have something you think we might want to include in future postings, you can send it to us at pdn@palm.com or via twitter to @webosdev

Pre101: A Guide to CSS Transitions in webOS
The people behind [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s happening in webOSland is a collection of interesting links to articles and conversations about webOS and webOS development. If you have something you think we might want to include in future postings, you can send it to us at <a href="mailto:pdn@palm.com">pdn@palm.com</a> or via twitter to @webosdev</p>
<ul>
<li><a href="http://pre101.com/blog/2009/11/10/a-guide-to-css-transitions-in-webos/">Pre101</a>: A Guide to CSS Transitions in webOS</li>
<li>The people behind gDial Pro talk about using <a href="http://flpalmdev.blogspot.com/2009/11/closure-and-webos.html">Google&#8217;s Closure with webOS</a>.</li>
<li>There&#8217;s a new set of <a href="http://www.devilx.net/2009/11/11/textmate-palm-pre-development-bundle-0-2/">webOS development extensions for TextMate</a>, courtesy of German developer <a href="http://www.devilx.net/">Marius</a>. (<a href="http://www.devilx.net/2009/11/13/palm-webos-formerly-palm-pre-development-bundle-for-textmate-0-3/">already updated</a>)</li>
<li><a href="http://developer.brightcove.com/en/articles/getting-started-brightcove-and-mojo-sdk-webos">Brightcove</a>: Getting Started with Brightcove and the Mojo SDK for webOS.</li>
<li><a href="http://www.precentral.net/webos-school-iowa-code-camp-presentations-now-available-online">WebOS School</a>: Iowa Code Camp Presentations now online</li>
</ul>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/H0pF6UGMjys" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/11/whats-happening-in-webosland-5/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/11/whats-happening-in-webosland-5/</feedburner:origLink></item>
		<item>
		<title>What’s Happening in WebOSLand</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/RXNlWswwsvg/</link>
		<comments>http://pdnblog.palm.com/2009/11/whats-happening-in-webosland-4/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 20:00:49 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[What's Happening in webOS]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=437</guid>
		<description><![CDATA[What&#8217;s happening in webOSland is a collection of interesting links to articles and conversations about webOS and webOS development. If you have something you think we might want to include in future postings, you can send it to us at pdn@palm.com or via twitter to @webosdev

Prethinking: Interview: Twee, Feeds, and WootOn! We speak to Delicious [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s happening in webOSland is a collection of interesting links to articles and conversations about webOS and webOS development. If you have something you think we might want to include in future postings, you can send it to us at <a href="mailto:pdn@palm.com">pdn@palm.com</a> or via twitter to @webosdev</p>
<ul>
<li><a href="http://www.prethinking.com/home/2009/11/1/interview-twee-feeds-and-wooton-we-speak-to-delicious-morsel.html">Prethinking</a>: Interview: Twee, Feeds, and WootOn! We speak to Delicious Morsel about WebOS and their apps.</li>
<li><a href="http://www.jaygeiger.com/index.php/2009/10/07/debug-webos-application/">Jay Geiger</a> has some suggestions on how to debug webOS Apps based on things he learned writing Cell Stalker.</li>
<li><a href="http://pre101.com/blog/2009/11/03/interview-with-jason-robitaille/">Pre101</a> has done a nice interview with Jason Robitaille, who&#8217;s been very involved with the homebrew community.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/RXNlWswwsvg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/11/whats-happening-in-webosland-4/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/11/whats-happening-in-webosland-4/</feedburner:origLink></item>
		<item>
		<title>webOS game development lessons learned: Self Aware at the Sprint Developer Conference</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/_hhfLSdiKVE/</link>
		<comments>http://pdnblog.palm.com/2009/11/webos-game-development-lessons-learned-self-aware-at-the-sprint-developer-conference/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 21:58:03 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[Developing on webOS]]></category>

		<category><![CDATA[The webOS Community]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=477</guid>
		<description><![CDATA[Dan Kurtz, the resident web expert at Self Aware Games, joined Palm on-stage at the Sprint Developer Conference to share his team’s lessons learned from having developed two games for webOS, Word Ace and Card Ace.
The team came to webOS thinking that first reports made it an attractive platform for some of their gaming ideas, [...]]]></description>
			<content:encoded><![CDATA[<p>Dan Kurtz, the resident web expert at <a href="http://www.selfawaregames.com/">Self Aware Games</a>, joined Palm on-stage at the Sprint Developer Conference to share his team’s lessons learned from having developed two games for webOS, Word Ace and Card Ace.</p>
<p>The team came to webOS thinking that first reports made it an attractive platform for some of their gaming ideas, especially if they matched the games to webOS core capabilities, such as always-on web connectivity, easy text entry from a physical keyboard, and multitasking. That said, they didn’t take the task of developing a webOS game lightly. As Dan said, &#8220;A new platform means problems. Developing a new game means problems. So developing a new game on a new platform meant problems squared.&#8221;</p>
<p>To help manage the risk inherent in such an undertaking, they prototyped their first game, Word Ace, on iPhone, since they already had experience on the platform and could get to a playable app quickly. When they turned to implementing the same functionality on webOS, they were able to take advantage of their knowledge of JavaScript, focus on learning the new platform, and implement already-robust features without having to solve for multiple unknowns.</p>
<p>Dan summarized their lessons learned in a few brief points. To paraphrase him:</p>
<ul>
<li>Happiness is designing for a single, cutting-edge web environment, which is provided by webOS</li>
<li>To develop great games on webOS, you need extremely detailed knowledge of JavaScript and CSS</li>
<li>You can make your life much easier if you design your game around the webOS strengths summarized above</li>
<li>When you need help or to learn more, use resources on the web including Palm’s <a href="http://developer.palm.com/distribution">webOSdev community forums</a> and open source code.</li>
</ul>
<p>You can read a lot more about Self Aware and its early webOS development experience in the webOSdev profile of <a href="http://developer.palm.com/index.php?option=com_content&amp;view=article&amp;id=1801">Self Aware Lead Designer Seppo Helava</a> in the “Getting Their Mojo Working” series.</p>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/_hhfLSdiKVE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/11/webos-game-development-lessons-learned-self-aware-at-the-sprint-developer-conference/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/11/webos-game-development-lessons-learned-self-aware-at-the-sprint-developer-conference/</feedburner:origLink></item>
		<item>
		<title>Palm at the 2009 Sprint Developer Conference</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/6lhJDyO3Fi0/</link>
		<comments>http://pdnblog.palm.com/2009/11/palm-2009-sprint-developer-conf/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 19:05:19 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[Developing on webOS]]></category>

		<category><![CDATA[The webOS Community]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=468</guid>
		<description><![CDATA[Here&#8217;s a summary of all our postings &#8212; starting with the latest entry &#8212; about Palm&#8217;s activities at the Sprint Developer Conference, which was held October 26-28 in Santa Clara.

webOS developers at Sprint Developer Conference: Pivotal Labs: Chris Sepulveda of Pivotal Labs demos two of their apps and talks about making the transition from traditional [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a summary of all our postings &#8212; starting with the latest entry &#8212; about Palm&#8217;s activities at the Sprint Developer Conference, which was held October 26-28 in Santa Clara.</p>
<ul>
<li><a href="http://pdnblog.palm.com/2009/11/webos-developers-at-sprint-developer-conference-pivotal-labs/">webOS developers at Sprint Developer Conference: Pivotal Labs</a>: Chris Sepulveda of Pivotal Labs demos two of their apps and talks about making the transition from traditional web development to webOS.</li>
<li><a href="http://pdnblog.palm.com/2009/10/whats-happening-in-webosland-3/">What’s Happening in webOSland, part 3</a>: Includes a pointer to the Pre101 write-up of the conference.</li>
<li><a href="http://pdnblog.palm.com/2009/10/palm-engineer-demos-the-wonders-of-webos-at -the-sprint-developer-conference/">Palm Engineer Demos the Wonders of webOS at the Sprint Developer Conference</a>: The lead engineer for Palm&#8217;s webOS phone app explains his motivation in writing another webOS app, Clock, and describes the design and coding of it. Also see the code he developed and added to the app on-stage to add functionality to Clock.</li>
<li><a href="http://pdnblog.palm.com/2009/10/complete-schedule-of-palm-activities-at-sprint-devcon/">Complete Schedule of Palm Activities at Sprint DevCon</a>: Palm&#8217;s schedule of events at the conference.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/6lhJDyO3Fi0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/11/palm-2009-sprint-developer-conf/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/11/palm-2009-sprint-developer-conf/</feedburner:origLink></item>
		<item>
		<title>webOS developers at Sprint Developer Conference: Pivotal Labs</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/VGYfouLHCXk/</link>
		<comments>http://pdnblog.palm.com/2009/11/webos-developers-at-sprint-developer-conference-pivotal-labs/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 21:52:59 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[The webOS Community]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=454</guid>
		<description><![CDATA[Palm engineers had a lot to say at the Sprint Developer Conference. Instead of trying to have the last word about webOS development, Palm shared the stage with four of your colleagues‹developers who already have apps available on Palm Pre. We thought you’d want to get a glimpse of what they had to say.
Chris Sepulveda [...]]]></description>
			<content:encoded><![CDATA[<p>Palm engineers <a href="http://pdnblog.palm.com/2009/10/palm-engineer-demos-the-wonders-of-webos-at- the-sprint-developer-conference/">had a lot to say</a> at the Sprint Developer Conference. Instead of trying to have the last word about webOS development, Palm shared the stage with four of your colleagues‹developers who already have apps available on Palm Pre. We thought you’d want to get a glimpse of what they had to say.</p>
<p>Chris Sepulveda from <a href="http://pivotallabs.com/">Pivotal Labs</a> demoed their first webOS app, the Twitter client Tweed, as well as Scoop, an RSS reader that’s just about to hit the catalog. He mentioned that Tweed was really Pivotal’s chance to kick the webOS tires, to try it out and see what they could do with it. “It was our &#8216;Hello World’ app, so to speak,” Chris said, “and it took us a couple of months to finish it.” By the time they got to Scoop, Pivotal engineering already had enough experience with webOS and the MOJO SDK that they were able to complete development in weeks.</p>
<p>Among the reasons Pivotal decided to jump into webOS were that Pivotal engineers had a lot of experience coding in JavaScript from their web dev project and because of that they were able to experiment and iterate with ease. It also made it easy do test-driven development, a style favored by the Pivotal team. (You can read more about test driven development and webOS in the webOSdev article, <a href="http://developer.palm.com/index.php?option=com_content&amp;view=article&amp;id=1827">Mojo Test Framework</a>. Additionally, they felt that webOS allows for a “stickier” user experience rather than one that prompted users to get in and get out quickly.</p>
<p>Next he turned to the Mojo SDK and Framework. Chris said it was really easy to learn for those with experience with JavaScript and, in particular, Ajax, adding that if you only know request/response web development the transition to Mojo would be more difficult than if you are used to asynchronous programming techniques. He also pointed out that you really don’t have to use much CSS or HTML if you use native Mojo widgets and default styling, and if you decide to use your own widgets/styling, things get interesting fast.</p>
<p>He concluded with a couple of general points for web developers considering webOS development: First, when building a mobile app, you have to be much more concerned with ergonomics, that is your use of space and how users reach each part of your application. And, second, he suggested that webOS lets the developer focus on building the best applications, not simply<br />
applications that work.</p>
<p>Don’t forget to read the webOS developer profiles series, “<a href="http://developer.palm.com/index.php?option=com_content&amp;view=article&amp;id=1826">Getting Their Mojo Working</a>,” in the webOSdev magazine.</p>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/VGYfouLHCXk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/11/webos-developers-at-sprint-developer-conference-pivotal-labs/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/11/webos-developers-at-sprint-developer-conference-pivotal-labs/</feedburner:origLink></item>
		<item>
		<title>What’s Happening in webOSland</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/6519KIaRTQI/</link>
		<comments>http://pdnblog.palm.com/2009/10/whats-happening-in-webosland-3/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 20:00:12 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[What's Happening in webOS]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=416</guid>
		<description><![CDATA[What&#8217;s happening in webOSland is a collection of interesting links to articles and conversations about webOS and webOS development. If you have something you think we might want to include in future postings, you can send it to us at pdn@palm.com or via twitter to @webosdev

Pre101 has a nice writeup of this week&#8217;s Sprint Developer [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s happening in webOSland is a collection of interesting links to articles and conversations about webOS and webOS development. If you have something you think we might want to include in future postings, you can send it to us at <a href="mailto:pdn@palm.com">pdn@palm.com</a> or via twitter to @webosdev</p>
<ul>
<li><a href="http://pre101.com/">Pre101</a> has a nice writeup of this week&#8217;s <a href="http://pre101.com/blog/2009/10/27/sprint-open-developers-conference-part-1/">Sprint Developer Conference</a>. (Also see his <a href="http://pre101.com/blog/2009/10/31/sprint-open-developers-conference-wrap-up/">coverage of day 3</a>)</li>
<li>Setting up <a href="http://www.webosschool.com/class/mod/book/view.php?id=60&amp;chapterid=135">Code Complete in Eclipse</a> from <a href="http://www.webosschool.com/">webOS School</a>.</li>
<li><a href="http://www.prethinking.com/home/2009/10/29/interview-we-speak-to-engine-equals-car-who-brought-us-peg-i.html">PreThinking interviews Engine Equals Car</a>, the group that wrote the apps Gone Fishin&#8217;, Easy Stopwatch, Peg IQ and Mine Search.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/6519KIaRTQI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/10/whats-happening-in-webosland-3/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/10/whats-happening-in-webosland-3/</feedburner:origLink></item>
		<item>
		<title>Palm Engineer Demos the Wonders of webOS at the Sprint Developer Conference</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/OUSfra85Oqs/</link>
		<comments>http://pdnblog.palm.com/2009/10/palm-engineer-demos-the-wonders-of-webos-at-the-sprint-developer-conference/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 14:55:01 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[Developing on webOS]]></category>

		<category><![CDATA[The webOS Community]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=421</guid>
		<description><![CDATA[Until now, we&#8217;ve been pretty nontechie here, but what Palm Engineer Matt Hornyak did during his talk at the Sprint Developer Conference today was so cool that we have to get really technical here, at least for today.
Matt is the lead engineer on the webOS phone app. He also wrote Clock, which ships with Pre. [...]]]></description>
			<content:encoded><![CDATA[<p>Until now, we&#8217;ve been pretty nontechie here, but what Palm Engineer Matt Hornyak did during his talk at the Sprint Developer Conference today was so cool that we have to get really technical here, at least for today.</p>
<p>Matt is the lead engineer on the webOS phone app. He also wrote Clock, which ships with Pre. In front of the gathered masses at the Sprint conference - somewhere around 500 of them - he went deep inside Clock. Matt explained his motivation in writing it and then described the design and coding of it.</p>
<p>All great stuff, but he saved the best for last. Wanting a way to change the length of the snooze alarm in the Clock app, Matt cooked up the code, added it to the app, and - voila - Clock had snooze control, running on the device I might add. And all this in about five minutes, in front of a live audience.</p>
<p>Here is the code he used for the control, with Matt&#8217;s annotations <strong>(in boldface)</strong> about what each section does. You might want to take a look at Clock and try adding this yourself, although if you&#8217;re not really experienced with JavaScript and Mojo yet, you might not want to make this the first thing you try.</p>
<p>If this is over your head, hang in there. We&#8217;re collaborating with Matt on an article about Clock that will include more detailed instructions on how to add the snooze feature. Consider this a sneak preview.</p>
<p>More from the Sprint conference later this week. Check back, ok? Out for now.</p>
<p><strong>Listing 1. Adds the new widget, and the borders around it.<br />
</strong><br />
Index: app/views/settings/settings-scene.html<br />
===================================================================<br />
&#8212; app/views/settings/settings-scene.html    trunk)<br />
+++ app/views/settings/settings-scene.html    (demo)    @@ -33,5 +33,16 @@<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
+<br />
+    &lt;div class=&#8221;palm-group&#8221;&gt;<br />
+        &lt;div class=&#8221;palm-group-title&#8221;&gt;<br />
+            &lt;span x-mojo-loc=&#8221;&gt;snooze&lt;/span&gt;<br />
+        &lt;/div&gt;<br />
+        &lt;div class=&#8221;palm-list&#8221;&gt;<br />
+             &lt;div class=&#8221;palm-row single&#8221;&gt;<br />
+                &lt;div id=&#8221;snoozeduration&#8221; x-mojo-element=&#8221;ListSelector&#8221;&gt;&lt;/div&gt;<br />
+            &lt;/div&gt;<br />
+        &lt;/div&gt;<br />
+    &lt;/div&gt;</p>
<p><strong>Listing 2. Changes settings assistant to set up new widget, and respond to events from it.<br />
</strong><br />
Index: app/controllers/settings-assistant.js<br />
===================================================================</p>
<p>&#8212; app/controllers/settings-assistant.js    trunk)<br />
+++ app/controllers/settings-assistant.js    demo<br />
@@ -1,6 +1,26 @@<br />
/* Copyright 2009 Palm, Inc.  All rights reserved. */</p>
<p>var SettingsAssistant = Class.create({<br />
+    // values for snooze duration listselector<br />
+    snoozeDurationChoices: [<br />
+        {<br />
+            label: $L("5 min."),<br />
+            value: 5<br />
+        },<br />
+        {<br />
+            label: $L("10 min."),<br />
+            value: 10<br />
+        },<br />
+        {<br />
+            label: $L("15 min."),<br />
+            value: 15<br />
+        },<br />
+        {<br />
+            label: $L("8 hrs."),<br />
+            value: 480<br />
+        },<br />
+    ],<br />
+<br />
initialize: function(settings, themes, onThemeChange) {<br />
this.appController = Mojo.Controller.getAppController();</p>
<p>@@ -14,6 +34,7 @@<br />
this.initializeSettings();</p>
<p>this.onKeyPress = this.onKeyPress.bind(this);<br />
+        this.onSnoozeDurationChange = this.onSnoozeDurationChange.bind(this); // event handler for snooze duration list handler</p>
<p>this.easterString = &#8220;&#8221;;</p>
<p>@@ -22,8 +43,12 @@<br />
// VERY IMPORTANT: UI for ringer switch has OPPOSITE MEANING of variable<br />
// it&#8217;s reversed here for display and must be reversed back when saving<br />
initializeSettings: function() {<br />
-        this.settingsModel = { };<br />
-        this.settingsModel.ringerSwitchObeyed = !(this.settings.ringerSwitchObeyedGet());<br />
+        this.settingsModel = {<br />
+            ringerSwitchObeyed: !(this.settings.ringerSwitchObeyedGet()),<br />
+            snoozeDuration: this.settings.snoozeDurationGet() // load setting for snooze duration into scene&#8217;s model<br />
+        }<br />
+<br />
+<br />
},</p>
<p>setup: function() {<br />
@@ -50,6 +75,15 @@</p>
<p>this.controller.get(&#8217;theme_set&#8217;).observe(Mojo.Event.tap, this.onThemeSelect);</p>
<p>+        this.controller.setupWidget(&#8217;snoozeduration&#8217;, { // setup snooze duration&#8217;s listselector widget<br />
+            label: $L(&#8217;length&#8217;),<br />
+            choices: this.snoozeDurationChoices,<br />
+            modelProperty: &#8217;snoozeDuration&#8217;,<br />
+            labelPlacement: Mojo.Widget.labelPlacementLeft<br />
+        }, this.settingsModel);<br />
+<br />
+        this.controller.listen(&#8217;snoozeduration&#8217;, Mojo.Event.propertyChange, this.onSnoozeDurationChange);<br />
+<br />
this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.onKeyPress);</p>
<p>},<br />
@@ -74,6 +108,10 @@<br />
this.settings.ringerSwitchObeyedSet(!(this.settingsModel.ringerSwitchObeyed));<br />
},</p>
<p>+    onSnoozeDurationChange: function() { // respond to events on list selector widget<br />
+        this.settings.snoozeDurationSet(this.settingsModel.snoozeDuration);<br />
+    },<br />
+<br />
themeUpdate: function() {<br />
var theme = this.themes.getCurrentTheme();<br />
this.controller.get(&#8217;theme_name&#8217;).textContent = this.themes.getNicename(theme.name);</p>
<p><strong>****end of framework-specific code; the rest is app-specific</strong></p>
<p><strong></strong></p>
<p><strong> </strong><br />
<strong>Listing 3. Changes settings model to get/save snooze length.</strong><br />
Index: app/models/settings.js<br />
===================================================================<br />
&#8212; app/models/settings.js    (trunk)<br />
+++ app/models/settings.js    (demo)<br />
@@ -36,7 +36,8 @@<br />
timePickerInterval: 5,<br />
dashboardHide: false,<br />
ringerSwitchObeyed: false,<br />
-            initialized: true<br />
+            initialized: true,<br />
+            snoozeDuration: 5<br />
};</p>
<p>this.save();<br />
@@ -72,9 +73,18 @@</p>
<p>ringerSwitchObeyedGet: function() {<br />
return this.values.ringerSwitchObeyed;<br />
-    }<br />
+    },</p>
<p>+    snoozeDurationGet: function() {<br />
+        return this.values.snoozeDuration || 5<br />
+    },<br />
+<br />
+    snoozeDurationSet: function(value) {<br />
+        this.values.snoozeDuration = value;<br />
+        this.save();<br />
+    },<br />
+<br />
});</p>
<p>Settings.kCookieKey = &#8220;settings&#8221;;</p>
<p><strong>Listing 4. Changes alarm model to have adjustable snooze time.</strong><br />
Index: app/models/alarm.js<br />
===================================================================<br />
&#8212; app/models/alarm.js    (trunk)<br />
+++ app/models/alarm.js    (demo)<br />
@@ -341,12 +341,19 @@<br />
},</p>
<p>// snooze this alarm.  pass true to indicate that it was snoozed by another popup opening<br />
-    snooze: function(alarmInterrupted) {<br />
+    snooze: function(alarmInterrupted, duration) {<br />
var newParams = Alarm.kAlarmLaunchParams.evalJSON();<br />
newParams.params.id = this.id;<br />
if (alarmInterrupted) {<br />
newParams.params.alarmInterrupted = true;<br />
}<br />
+<br />
+        if (duration) {<br />
+            duration = &#8220;00:&#8221; + duration + &#8220;:00&#8243;<br />
+        } else {<br />
+            duration = Alarm.kAlarmSnoozeDuration;<br />
+        }<br />
+<br />
var newParamsJSON = Object.toJSON(newParams);<br />
this.schedulerSetRequest = new Mojo.Service.Request(Alarm.kAlarmSchedulerUri, {<br />
method: &#8220;set&#8221;,<br />
@@ -355,7 +362,7 @@<br />
&#8220;key&#8221;: Alarm.kAlarmSchedulerKeySnooze+this.id,<br />
&#8220;uri&#8221;: Alarm.kAlarmLaunchUri,<br />
&#8220;params&#8221;: newParamsJSON,<br />
-                &#8221;in&#8221;: (alarmInterrupted ? Alarm.kAlarmSnoozeInterruptedDuration : Alarm.kAlarmSnoozeDuration)<br />
+                &#8221;in&#8221;: (alarmInterrupted ? Alarm.kAlarmSnoozeInterruptedDuration : duration)<br />
},<br />
onSuccess: function(payload) {<br />
// Mojo.Log.info(&#8221;Alarm: snooze succeeded&#8221;);</p>
<p><strong>Listing 5. Changes ring notification to get snooze length.<br />
</strong><br />
Index: app/controllers/ring-assistant.js<br />
===================================================================<br />
&#8212; app/controllers/ring-assistant.js    (trunk)<br />
+++ app/controllers/ring-assistant.js    (demo)<br />
@@ -5,6 +5,7 @@<br />
initialize: function(params){<br />
this.appControl = Mojo.Controller.getAppController();<br />
this.appAssistant = this.appControl.assistant;<br />
+        this.settings = this.appAssistant.settings;</p>
<p>this.alarmOff = this.alarmOff.bindAsEventListener(this);<br />
this.snooze = this.snooze.bindAsEventListener(this);<br />
@@ -55,7 +58,7 @@<br />
} else if (this.shortSnooze) {<br />
this.alarm.snooze(true /* short snooze */);<br />
} else {<br />
-            this.alarm.snooze();<br />
+            this.alarm.snooze(false /* not short snooze */, this.settings.snoozeDurationGet());<br />
}<br />
},</p>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/OUSfra85Oqs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/10/palm-engineer-demos-the-wonders-of-webos-at-the-sprint-developer-conference/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/10/palm-engineer-demos-the-wonders-of-webos-at-the-sprint-developer-conference/</feedburner:origLink></item>
		<item>
		<title>Complete Schedule of Palm Activities at Sprint DevCon</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/TTmpEyz8T4s/</link>
		<comments>http://pdnblog.palm.com/2009/10/complete-schedule-of-palm-activities-at-sprint-devcon/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 20:00:42 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[Developing on webOS]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=400</guid>
		<description><![CDATA[We’ve got a lot going on at the Sprint Developer Conference in Santa Clara next Monday, Tuesday, and Wednesday. You’ll have a lot of chances to hear from some of our experts and members of the webOS development community and to hang out with folks from Palm. Here’s an entire schedule of our participation:
MONDAY
9:30-10:30 AM [...]]]></description>
			<content:encoded><![CDATA[<p>We’ve got a lot going on at the Sprint Developer Conference in Santa Clara next Monday, Tuesday, and Wednesday. You’ll have a lot of chances to hear from some of our experts and members of the webOS development community and to hang out with folks from Palm. Here’s an entire schedule of our participation:</p>
<p>MONDAY</p>
<p><strong>9:30-10:30 AM Getting Started with Palm® webOS Apps, PART 1</strong>: The webOS Opportunity and Technical Overview. Ben and Dion with Mitch Allen, Palm Software CTO</p>
<p style="padding-left: 30px;">Find out why webOS has generated so much excitement in both the web and mobile developer communities, and get a look under the hood at this game-changing OS from one of the engineers who led its development.</p>
<p><strong>10:40-11:40 AM Getting Started with Palm® webOS Apps, PART 2</strong>: UI and app design details. Geoff Schuller, Palm UI, and Matthew Hornyak, Palm Engineering</p>
<p style="padding-left: 30px;">Geoff Schuller will start things off with a review of general webOS app HI Guidelines. Then Geoff and Matt will present a deep dive into a sample application using the webOS Clock app. Geoff will review Clock&#8217;s UI design followed by Matt who will show how the Clock app was developed with examples from the Clock&#8217;s code.</p>
<p><strong>12:15-1:15 PM Getting Started with Palm® webOS Apps, PART 3</strong>: Developer Showcase.</p>
<p style="padding-left: 30px;">Ben and Dion with Chris Sepulveda (Pivotal Labs), Lawrence Davison (Mark/Space), Alex Pachikov (Evernote), and Dan Kurtz (SelfAware)<br />
Four developers with apps in the Palm App Catalog demo their work and talk about how they got started with webOS. Hear about the challenges they encountered along the way and how they met them, and find out how each of them used skills developed writing for other environments to decrease the webOS learning curve.</p>
<p><strong>1:25- 2:25 PM Getting Started with Palm® webOS Apps, PART 4</strong>: Working With Palm: Tools, programs, and app distribution. Ben and Dion with Stephen Feaster, Palm Developer Technical Support</p>
<p style="padding-left: 30px;">Get ready for the webOS coding workshop Monday night by watching us demo the Palm Mojo SDK to build, debug, and run a simple app. Also, learn about Palm’s developer program and app distribution plans.</p>
<p><strong>7:00-9:00 PM Coding Session</strong>: Up and Running with the Palm® Mojo™  SDK</p>
<p style="padding-left: 30px;">Palm Developer Support Engineer Steven Feaster and other Palm resident webOS experts lead an informal workshop to help you get started with webOS app development. Palm’s staff will be there to provide individual and group hand-holding and instruction as you get up and running on webOS. Bring ideas for cool mobile apps and a wide open mind. And be sure to bring your laptop with Mojo SDK installed,please. To get the SDK, go to developer.palm.com and follow the signs to download. Food and cold beverage will be served!</p>
<p>TUESDAY</p>
<p><strong>12:15-1:30 PM</strong> Palm booth in the main exhibition hall</p>
<p style="padding-left: 30px;">Come see Palm staff during lunch. Get your hands on Palm Pre and Palm Pixi, and say hello to Ben, Dion, and others from Palm engineering and developer relations.</p>
<p><strong>6:30-9:00 PM</strong> Dinner reception and Palm booth</p>
<p style="padding-left: 30px;">Same as above. See you there!</p>
<p>WEDNESDAY</p>
<p><strong>12:00-1:15 PM</strong> Palm booth in the main exhibition hall</p>
<p style="padding-left: 30px;">We’ll be back at the booth during lunchtime.</p>
<p><strong>1:15-1:45 Palm Keynote Address</strong>: The Future of Web and Mobile, Ben and Dion</p>
<p style="padding-left: 30px;">Palm’s developer relations codirectors share their vision for the future of computing and the convergence of web and mobile technologies.</p>
<p>It’s not too late to register. Go to<a href="http://sprintadp09.com/sprint_ADP.html"> http://sprintadp09.com/sprint_ADP. html</a></p>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/TTmpEyz8T4s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/10/complete-schedule-of-palm-activities-at-sprint-devcon/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/10/complete-schedule-of-palm-activities-at-sprint-devcon/</feedburner:origLink></item>
		<item>
		<title>Mitch Allen, Palm HI and engineering at Sprint Developer Conference</title>
		<link>http://feedproxy.google.com/~r/pdnblog/~3/d6hiuA07okg/</link>
		<comments>http://pdnblog.palm.com/2009/10/mitch-allen-palm-hi-and-engineering-at-sprint-developer-conference/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 16:17:44 +0000</pubDate>
		<dc:creator>Chuq Von Rospach</dc:creator>
		
		<category><![CDATA[Developing on webOS]]></category>

		<guid isPermaLink="false">http://pdnblog.palm.com/?p=394</guid>
		<description><![CDATA[This just in: Palm Software CTO will be joining Ben and Dion Monday morning at the Sprint Developer Conference to deliver a technical overview of webOS. This is a great opportunity to get Mitch’s latest insight into webOS and writing webOS apps.
Later that morning, you can also hear from members of the Palm’s HI and [...]]]></description>
			<content:encoded><![CDATA[<p>This just in: Palm Software CTO will be joining Ben and Dion Monday morning at the Sprint Developer Conference to deliver a technical overview of webOS. This is a great opportunity to get Mitch’s latest insight into webOS and writing webOS apps.</p>
<p>Later that morning, you can also hear from members of the Palm’s HI and engineering teams talk about webOS HI and app design. They’ll go way  under the covers of one of the shipping Palm apps to show you the ins and outs of how its functionality is written.</p>
<p>We’ll have complete details of what we’re up to on Monday at the conference — including more info about the coding session we’re hosting that evening (and yes, there will be food and cold beverage) — by tomorrow, so check back then.</p>
<p>If you’re going to be in Santa Clara for the Sprint Developer Conference, don’t miss it. If you haven’t registered yet, go to<a href="http://sprintadp09.com/sprint_ADP. html"> http://sprintadp09.com/sprint_ADP. html</a></p>
<img src="http://feeds.feedburner.com/~r/pdnblog/~4/d6hiuA07okg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://pdnblog.palm.com/2009/10/mitch-allen-palm-hi-and-engineering-at-sprint-developer-conference/feed/</wfw:commentRss>
		<feedburner:origLink>http://pdnblog.palm.com/2009/10/mitch-allen-palm-hi-and-engineering-at-sprint-developer-conference/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.300 seconds. --><!-- Cached page generated by WP-Super-Cache on 2009-11-20 23:00:47 -->
