<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>BlackBerry Developer Blog &#187; UI design</title>
	<atom:link href="http://devblog.blackberry.com/tag/ui-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 15:08:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devblog.blackberry.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ef0a66c09615fa946c4179662398878?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>BlackBerry Developer Blog &#187; UI design</title>
		<link>http://devblog.blackberry.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devblog.blackberry.com/osd.xml" title="BlackBerry Developer Blog" />
	<atom:link rel='hub' href='http://devblog.blackberry.com/?pushpress=hub'/>
		<item>
		<title>How To: Inline Video Preview</title>
		<link>http://devblog.blackberry.com/2010/07/how-to-inline-video-preview/</link>
		<comments>http://devblog.blackberry.com/2010/07/how-to-inline-video-preview/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 10:00:00 +0000</pubDate>
		<dc:creator>Shiladitya S.</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[UI design]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=1796</guid>
		<description><![CDATA[How to embed video in a list-like structure within a UI manager on the BlackBerry platform.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=1796&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img src="http://rimdevblog.files.wordpress.com/2010/07/inlinevideopreview.jpg?w=237&#038;h=310" alt="" title="Inline video preview" width="237" height="310" class="aligncenter size-full wp-image-1797" /></p>
<p>At last year’s <a href="http://www.blackberrydevcon.com/" target="_new" title="BlackBerry Developer Conference">BlackBerry Developer Conference</a>, I hosted a session where I discussed various ways of previewing video content, and now I’d like to share the sample application that allows you to view video within a list-like structure. The application demonstrates how the BlackBerry® video API allows you to add video just like a field within your UI manager. I have included the project and its source code as an example.</p>
<p>The sample takes video from your memory card and displays them as a list. On focus, it starts playing inline, and stops when the focus is away. There are three simple steps to achieving this:</p>
<p><span id="more-1796"></span></p>
<p><strong>1.	Inline Player Creation</strong><br />
a.	Create a player using the media manager API<br />
b.	Obtain the controls of the player<br />
c.	Get a reference of the video field</p>
<p><strong>2.	Set relative video view position</strong><br />
a.	Set the display position of the field<br />
b.	Set height and width of the video field<br />
c.	Add this field to the parent container to handle layout.</p>
<p><strong>3.	Handle Control Events</strong><br />
a.	onFocus schedule a timer to detect Hover state<br />
b.	Start the player on Hover<br />
c.	onUnFocus stop the player</p>
<p>The setup code is in the InlineVideoManager class:</p>
<div class="sample">
<pre>
public InlineVideoManager(Video video, int videoWidth, int videoHeight){
p = Manager.createPlayer (url);
_player.realize();
VideoControl videoControl = (VideoControl) p.getControl("VideoControl");
Field field = (Field) videoControl.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE,
"net.rim.device.api.ui.Field");
field.setPadding(3, 3, 3,3);
videoControl.setDisplayLocation(3, 3);
videoControl.setDisplaySize(videoWidth, videoHeight);
videoControl.setVisible(true);
……..
super.add(field )
}
</pre>
</div>
<p></p>
<p>Handling focus change events:</p>
<div class="sample">
<pre>
public void onFocus(int direction)
{
if(_player != null &amp;&amp; _player.getState() == Player.STARTED){
try{
_player.stop();
}catch(Throwable e){}
}

_videoDelayTimer = new Timer();
_videoDelayTimer.schedule(new VideoDelayTimer(),1000);
super.onFocus(direction);
}
</pre>
</div>
<p></p>
<p>To get the entire package of source code, click <a href="http://supportforums.blackberry.com/t5/Java-Development/Sample-Code-How-to-add-video-to-your-UI/ta-p/526537" target="_new">here</a>.</p>
<p>For the sake of simplicity, I have left the loading of videos from SD card synchronous, which means that if you have a lot of video, it may take some time. This just helps to demonstrate how you can embed video and play inline within your UI manager.</p>
<p>Have you had any experience with embedding video?  Let us know in the comments.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/1796/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/1796/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=1796&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2010/07/how-to-inline-video-preview/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/849ad61a03a581789c41b1c854ef9bf3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Shiladitya S.</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2010/07/inlinevideopreview.jpg" medium="image">
			<media:title type="html">Inline video preview</media:title>
		</media:content>
	</item>
		<item>
		<title>BlackBerry Developer Resource Fridays: Week of May 21st</title>
		<link>http://devblog.blackberry.com/2010/05/blackberry-developer-resource-fridays-may-21s/</link>
		<comments>http://devblog.blackberry.com/2010/05/blackberry-developer-resource-fridays-may-21s/#comments</comments>
		<pubDate>Fri, 21 May 2010 10:00:00 +0000</pubDate>
		<dc:creator>Douglas Soltys</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[developer-zone]]></category>
		<category><![CDATA[UI design]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=1602</guid>
		<description><![CDATA[The latest BlackBerry developer resource additions to the BlackBerry Developer Zone.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=1602&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Welcome to BlackBerry® Developer Resource Fridays, a reoccurring event here on the BlackBerry Developer’s Blog. We’ll keep you up to date on helpful articles that have been added to the Developer Knowledge Base and other new additions to the <a title="BlackBerry Developer Zone" href="http://na.blackberry.com/eng/developers/" target="_new">BlackBerry Developer Zone</a>. Here are this week&#8217;s pearls of wisdom:</p>
<ul>
<li><strong><a href="http://supportforums.blackberry.com/t5/Java-Development/BlackBerry-UI-hierarchy/ta-p/502375" target="_new">BlackBerry UI hierarchy</a> (ARTICLE)</strong></li>
<li><strong><a href="http://supportforums.blackberry.com/t5/Java-Development/Manage-UI-interactions/ta-p/502378" target="_new">Manage UI interactions</a> (ARTICLE) </strong></li>
<li><strong><a href="http://supportforums.blackberry.com/t5/Java-Development/Introduction-to-Resource-Bundles/ta-p/507362" target="_new">Introduction to Resource Bundles</a> (VIDEO)</strong></li>
</ul>
<p>Tune in next week for more Developer Resource Friday fun, and don’t forget to post a comment about your favorite article and articles you would like to see!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/1602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/1602/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=1602&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2010/05/blackberry-developer-resource-fridays-may-21s/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/2d037da01c57235fd7d45fc1c591397f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dsoltys</media:title>
		</media:content>
	</item>
		<item>
		<title>BlackBerry Application User Interface Design Webinar February 16th</title>
		<link>http://devblog.blackberry.com/2010/02/blackberry-application-user-interface-design-webinar-february-16th/</link>
		<comments>http://devblog.blackberry.com/2010/02/blackberry-application-user-interface-design-webinar-february-16th/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 13:08:34 +0000</pubDate>
		<dc:creator>Brian Z.</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[UI design]]></category>
		<category><![CDATA[webinar]]></category>

		<guid isPermaLink="false">http://blackberrydev.edstaging.com/?p=14</guid>
		<description><![CDATA[One of the best ways to set your application apart – and set it up for greater success – is the interface. One thing that the most successful BlackBerry app developers have told us is that they had to be able to balance setting their application apart through UI and meeting their number one priority: [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>One of the best ways to set your application apart – and set it up for greater success – is the interface. One thing that the most successful BlackBerry app developers have told us is that they had to be able to balance setting their application apart through UI and meeting their number one priority: making sure that your BlackBerry UI is easy to use, easy to learn, and visually appealing.</p>
<p>In our upcoming UI developer webinar, we will be discussing a host of details that are often overlooked in BlackBerry application UI design. With the material covered in this session, you&#8217;ll gain a new appreciation for how small changes can make a big difference.</p>
<p><strong>So how do you get started?  Here are some topics to think about before attending the webinar:</strong></p>
<ul>
<li>The key is to be patient – don’t jump into your own BlackBerry application UI design until you have a firm grasp on what you think will appeal to users of your target device.</li>
<li>Figure out the basic concepts for your screens, but do not design the screens themselves.  That is, determine the principal features of each screen such as whether or not it will present items as a list, will it use tabs, will there be buttons, will there be menu controls, etc, but do not actually sketch out the screen.  Instead, build a list of criteria that you want to consider for each and every screen and field.  Items that you might want to consider are: <span id="more-14"></span>
<ol>
<li>colors</li>
<li>fonts</li>
<li>spacing / padding</li>
<li>layout / alignment</li>
<li>contrast / gradients</li>
<li>images / backgrounds</li>
<li>navigation</li>
<li>shapes</li>
<li>transitions / animations</li>
<li>presentation and organization of data</li>
</ol>
</li>
<li>Before you make any decisions relating to the items of that list, take stock of what other applications have done, learning from the successes of others.  Start with the applications that are resident on the BlackBerry® smartphone and carefully inspect some of the design choices in these apps.  Pay special attention to UI features that might be applicable to your application and examine them with a fine tooth comb – what do you like about it, what could be improved, does the layout make sense, is it consistent with other applications on the smartphone, etc.</li>
<li>If you’re able to replicate any UI resident in applications that ship with the BlackBerry smartphone, your users will bestow some inherent goodwill on your application since on first launch, there are elements to your UI that they can immediately identify, allowing them to leverage what they’ve already learned.  Take a look at the <a href="http://docs.blackberry.com/en/developers/deliverables/6625/">UI Guidelines</a> documentation to get a feel for common usage patterns on BlackBerry smartphones.</li>
<li>Once you’ve picked up some of the existing interaction models, it’s time to set your application apart.  The first step in differentiation is understanding what’s already out there.  Research software stores like BlackBerry App World™, inspecting some of the most popular applications.  Of the most downloaded applications, find a sampling of applications that have received very positive feedback and those that have been successful in spite of neutral or even negative reviews.  Read the reviews to discover what users liked and what they disliked.  Install and run these applications, learning everything you can from the various screens of these applications.</li>
<li>When building your BlackBerry application UI, if you remember nothing else, think of this: do not overlook even the smallest of details.  If an image isn’t crisp, if some piece of text isn’t exactly how you want it, or if something just doesn’t feel right, change it.</li>
<p>Want to learn more?  <strong>Attend the webcast on February 16th</strong> for an in-depth exploration of the criteria items listed above along with an analysis of real-world examples that will help you apply the same critical eye to your own applications.</p>
<h2>Webinar</h2>
<p><strong>Small Screens, Big Dreams: a Detail-Oriented Approach to BlackBerry Application User Interface Design</strong></p>
<p>Date: February 16, 2010</p>
<p>Time: 2:00 PM EST (North America)</p>
<p>Presenters: Brian Zubert, Sr. Application Development Consultant</p>
<p><a href="http://webcast.streamlogics.com/audience/index.asp?eventid=16057985">Register Now!</a></ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2010/02/blackberry-application-user-interface-design-webinar-february-16th/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/93c01acd537bfb61a304b73eef4fce76?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brianzub1</media:title>
		</media:content>
	</item>
	</channel>
</rss>
