<?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; Naveen</title>
	<atom:link href="http://devblog.blackberry.com/author/naveenm1/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 18:00:36 +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; Naveen</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>Newly Released Sencha Touch 2.2 Optimized for BlackBerry 10!</title>
		<link>http://devblog.blackberry.com/2013/04/sencha-touch-2-2/</link>
		<comments>http://devblog.blackberry.com/2013/04/sencha-touch-2-2/#comments</comments>
		<pubDate>Mon, 22 Apr 2013 19:18:01 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[BlackBerry 10 Web]]></category>
		<category><![CDATA[sencha]]></category>
		<category><![CDATA[sencha touch]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=14743</guid>
		<description><![CDATA[In the last release of Sencha Touch 2.1.1, we were happy and excited to see the BlackBerry 10 theme added. This enabled developers to create visually compelling applications with the BlackBerry 10 native look and feel. Now with the release of Sencha Touch 2.2, we are delighted to announce significant enhancements so that you can [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14743&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In the last release of Sencha Touch 2.1.1, we were happy and excited to see the BlackBerry 10 theme added. This enabled developers to create visually compelling applications with the BlackBerry 10 native look and feel. Now with the release of <a href="http://www.sencha.com/blog/hello-sencha-touch-2-2/" target="_new">Sencha Touch 2.2</a>, we are delighted to announce significant enhancements so that you can develop applications for BlackBerry 10 without worrying about performance. The Webkit rendering optimization from the BlackBerry 10 Web platform combined with performance improvements in Sencha Touch optimization result in a great opportunity for developers who are building for the application for the first time and for those who are looking to port a Sencha Touch app to BlackBerry 10. Let’s take a look at some of the UI components which are optimized on this release.</p>
<h3><strong>List Component</strong></h3>
<p>The list is an essential UI component for almost all applications and Sencha Touch provides a list component that is ideal for presenting an index-style list of items. With the release of Sencha Touch 2.2, the scrolling of the list component has been greatly optimized and improved. The scrolling performance of the list averages about 35-40 frames per seconds on the BlackBerry 10 web platform. Here is a short video demonstrating the scrolling performance of a list with 60 items, with each item containing texts and images.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/nsGce1zTwbk?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<h3><strong>Tab Panels</strong></h3>
<p>Tab Panels are a great way to allow the user to switch between several pages. The touch responsiveness has been tuned specifically for the BlackBerry 10 platform and the transition between screens has been optimized as well. Here is a short video of the tab panels in action.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/tpkffEa8vNc?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<h3><strong>Navigation View</strong></h3>
<p>Navigation View is a great way to switch views within an application, which provides a stack of UI containers that you can push in and pop off. In Sencha Touch 2.2, additional work was done to make these perform even better in the BlackBerry 10 environment. Users can switch views of an application and move between screens without any delays. The transitions between views and screens are smooth and provide a great user experience. Here is the video clip of an application which uses the navigation view.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/CGruk7AqMR8?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p>&nbsp;</p>
<p>If you are new to Sencha Touch, it is an impressive JavaScript® framework based entirely on HTML5, CSS and JavaScript. It’s designed to bring an incredibly powerful set of components together to create rich mobile applications. Today’s Sencha Touch release not only brings support for BlackBerry 10, but continues Sencha’s support for the BlackBerry® PlayBook™ tablet. To get started, developers should <a href="http://www.sencha.com/products/touch/download/" target="_new">download the framework</a> and then check out the <a href="http://www.sencha.com/learn/Sencha_Touch" target="_new">Sencha Touch Learning Center</a>, where they will find code samples, videos, and tutorials. To get an idea of what is possible using the framework, there are a variety of <a href="http://www.sencha.com/products/touch/demos/" target="_new">demo applications</a> showcasing the breadth and power of the platform.</p>
<p>If you have a Sencha Touch application already and are looking to bring it over to BlackBerry 10, you’re in for a treat &#8211; you can bring your Sencha Touch application to BlackBerry 10 in just a few steps. Here is the complete <a href="https://developer.blackberry.com/html5/documentation/creating_blackberry_webworks_applications_with_sencha_touch.html" target="_new">porting guide</a> and a <a href="http://devblog.blackberry.com/2012/11/sencha-touch-blackberry-10/" target="_new">developer video</a>, which shows you step by step instructions to bring your Sencha Touch application to BlackBerry 10.</p>
<p>If you have an application which was created using Sencha Touch 2.0 or Sencha Touch 2.1, upgrading to Sencha Touch 2.2 is as easy as changing the CSS and Java Script references. This way you can leverage and take advantage of the performance optimization that this release provides. For more information on updates and changes that might impact your upgrade, see the <a href="http://docs.sencha.com/touch/2.2.0/#!/guide/whats_new" target="_new">What&#8217;s New guide</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/14743/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/14743/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=14743&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/04/sencha-touch-2-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/83a3304d7f99cd7e5d2323b7338f7305?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveenm1</media:title>
		</media:content>
	</item>
		<item>
		<title>Sencha Touch Support for BlackBerry 10!</title>
		<link>http://devblog.blackberry.com/2013/02/sencha-touch-support-for-blackberry-10/</link>
		<comments>http://devblog.blackberry.com/2013/02/sencha-touch-support-for-blackberry-10/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 12:18:12 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebWorks]]></category>
		<category><![CDATA[BlackBerry 10]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[sencha]]></category>
		<category><![CDATA[sencha touch]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=13531</guid>
		<description><![CDATA[We’ve been working the last few months with the team at Sencha to bring the support for BlackBerry 10 out of beta and ready to be used by developers.  We’re glad to announce with Sencha that the wait is over! Performance and a full BlackBerry 10 theme are here for BlackBerry 10.  Now, you can [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13531&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha.png"><img class="aligncenter size-full wp-image-13532" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha-e1360151747329.png?w=600&#038;h=570" width="600" height="570" /></a></p>
<p>We’ve been working the last few months with the team at Sencha to bring the support for BlackBerry 10 out of beta and ready to be used by developers.  We’re glad to announce with Sencha that the wait is over! Performance and a full BlackBerry 10 theme are here for BlackBerry 10.  Now, you can develop visually compelling applications using components in Sencha Touch 2.1.1 without worrying about the performance. The Webkit rendering optimization from the BlackBerry 10 Web platform combined with the Sencha’s performance optimization resulted in great venue for the developers who are developing this application for the first time. Additionally, these optimizations will also help developers who have already developed a Sencha Touch application and are looking to bring it to the BlackBerry 10 platform.</p>
<p>If that wasn’t enough by itself, we are very happy and excited to announce that the latest Sencha Touch release has the full support for BlackBerry 10 theme.  As mentioned at BlackBerry Jam 2012, Sencha is committed to supporting BlackBerry 10 and we’ve been working together with their team to bring these new visuals to their product. With this theme support you can start building BlackBerry 10 themed HTML5 applications using Sencha Touch to give your application the BlackBerry 10 native look and feel. Sencha and BlackBerry are committed to delivering the best platform for building BlackBerry 10 applications with open web standards. The latest Sencha Touch release delivers the BlackBerry 10 native look and feel to most of the UI components such as Forms, DataView, Carousel, List, TabPanel, NestedList and Navigation View. Let’s take a closer look at some of these UI components, styled for BlackBerry 10.</p>
<p><span id="more-13531"></span></p>
<h3><b>Form Elements</b></h3>
<p>Form Elements are one of the most common mobile UI elements, and a building block for many applications, and Sencha has given that native BlackBerry 10 look and feel to them. So, if you want your application to look and feel like a BlackBerry 10 application, you should definitely take advantage of these form elements.  The input adapts to the virtual keyboard as well.  If you have an input type of password or email, keyboard changes configuration to match the input type using standard HTML5 integrated elements.</p>
<p style="text-align:center;"><a href="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha1.png"><img class="aligncenter  wp-image-13533" alt="devblog - sencha1" src="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha1.png?w=413&#038;h=783" width="413" height="783" /></a></p>
<h3 style="text-align:left;">Action Bar</h3>
<p>Sencha Touch also includes BlackBerry 10 specific components. The first one we’ll look at is the action bar at the bottom.  The action bar is a styled Sencha Tab Panel and it’s designed in a way that you can switch between pages very easily and this is the same type of design you see in the BlackBerry 10 native applications. You can see this same sort of design with other frameworks, and Sencha has brought the same design to be used for BlackBerry 10 developers.  As you can see, it adapts whether you are in portrait or landscape.</p>
<p style="text-align:center;"><a href="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha2.png"><img class="aligncenter  wp-image-13534" alt="devblog - sencha2" src="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha2.png?w=413&#038;h=783" width="413" height="783" /></a></p>
<h3 style="text-align:left;">CrossCut Menu</h3>
<p>In addition to above, the BlackBerry 10 CrossCut menu is also supported by the BlackBerry 10 theme as a new Sencha Touch component. As a developer, you can leverage the CrossCut menu component to create compelling BlackBerry 10 style application using just web technologies and give the native BlackBerry 10 look and feel to the app.  If you’re interested in using the component, it’s the new Ext.bb.CrossCut component (xtype: crosscut). Here is the code snippet, which shows how to use the CrossCut component with in the Sencha Touch framework. The complete reference for the CrossCut menu is available <a href="http://docs.sencha.com/touch/2-1/#!/api/Ext.bb.CrossCut">here</a>.</p>
<p style="text-align:center;"><a href="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha3.png"><img class="aligncenter  wp-image-13535" alt="devblog - sencha3" src="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha3.png?w=430&#038;h=130" width="430" height="130" /></a></p>
<h3>To enable the BlackBerry 10 theme, refer to the <a href="http://www.sencha.com/blog/introducing-blackberry-10-support-to-sencha-touch">Sencha blog post</a> for instructions.</h3>
<p>If you are new to Sencha Touch, it is an impressive JavaScript® framework based entirely on HTML5, CSS and JavaScript, and designed to bring an incredibly powerful set of components to create rich mobile applications. Today’s Sencha Touch release not only brings support for BlackBerry 10, but continues Sencha’s support for the BlackBerry® PlayBook™ tablet.  To get started, developers should <a href="http://www.sencha.com/products/touch/download/" target="_new">download the framework</a> and then check out the <a href="http://www.sencha.com/learn/Sencha_Touch" target="_new">Sencha Touch Learning Center</a>, where they will find code samples, videos and tutorials. To get an idea of what is possible using the framework, there are a variety of <a href="http://www.sencha.com/products/touch/demos/" target="_new">demo applications</a> showcasing the breadth and power of the platform.</p>
<p>If you have a Sencha Touch application already and looking to bring it over to BlackBerry 10, stop worrying.  You can bring your Sencha Touch application to BlackBerry 10 in few steps.  Here is the complete <a href="https://developer.blackberry.com/html5/documentation/creating_blackberry_webworks_applications_with_sencha_touch.html">porting guide</a> and the <a href="http://devblog.blackberry.com/2012/11/sencha-touch-blackberry-10/">developer video</a>, which shows you step by step instructions to bring your Sencha Touch application to BlackBerry 10.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/13531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/13531/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=13531&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/02/sencha-touch-support-for-blackberry-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/83a3304d7f99cd7e5d2323b7338f7305?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveenm1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha-e1360151747329.png" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha1.png" medium="image">
			<media:title type="html">devblog - sencha1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha2.png" medium="image">
			<media:title type="html">devblog - sencha2</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/02/devblog-sencha3.png" medium="image">
			<media:title type="html">devblog - sencha3</media:title>
		</media:content>
	</item>
		<item>
		<title>Introducing Sencha Touch 2.1 on BlackBerry 10</title>
		<link>http://devblog.blackberry.com/2012/11/sencha-touch-blackberry-10/</link>
		<comments>http://devblog.blackberry.com/2012/11/sencha-touch-blackberry-10/#comments</comments>
		<pubDate>Tue, 06 Nov 2012 20:44:19 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[sencha]]></category>
		<category><![CDATA[web apps]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Web Frameworks]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=11904</guid>
		<description><![CDATA[We’re very pleased to announce that Sencha has released an update to their Sencha Touch framework that brings beta support for the BlackBerry® 10 operating system. For those unfamiliar with Sencha Touch, it is an impressive JavaScript® framework based entirely on HTML5, CSS and JavaScript that is designed to bring an incredibly powerful set of [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11904&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter  wp-image-11916" title="IMG_00000119" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2012/11/img_00000119.png?w=614&#038;h=360" height="360" width="614" /></p>
<p>We’re very pleased to announce that <a href="http://www.sencha.com/" target="_new">Sencha</a> has released an update to their Sencha Touch framework that brings beta support for the BlackBerry® 10 operating system. For those unfamiliar with Sencha Touch, it is an impressive JavaScript® framework based entirely on HTML5, CSS and JavaScript that is designed to bring an incredibly powerful set of components to create rich mobile applications. Today’s Sencha Touch release not only brings support for BlackBerry 10, but it also supports the BlackBerry® PlayBook™ tablet.</p>
<p>Sencha Touch includes all of the core concepts around Controllers, including refs, control and routes as well as Device Profiles, which enables you to easily develop applications that can present customized UIs on BlackBerry 10 devices and BlackBerry PlayBook tablet. In terms of components, Sencha touch 2.1 supports all the major components which helps you to develop compelling application for the BlackBerry 10 Platform. Sencha Touch supports Forms, DataView, Carousel, List, TabPanel, NestedList and Navigation View, and the BlackBerry 10 specific CrossCut component.</p>
<p><span id="more-11904"></span></p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/uM5qHrsrACQ?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p>&nbsp;</p>
<p>While Sencha Touch 2.1 includes key upgrades such as significant performance improvements, a new and improved charting and data visualization package, a new infinite list component, and enhanced native support through the Sencha Mobile Packager, the most relevant upgrade to BlackBerry platform is the new BlackBerry theme and the new CrossCut component.</p>
<p>With over fifty built-in components, state management, and a built-in MVC system, Sencha Touch provides everything you need to create immersive applications for the BlackBerry 10 and BlackBerry PlayBook tablet platforms. Sencha Touch also provides access to local hardware services like geolocation and accelerometers as well as system services like localStorage, which allow developers to take advantage of hardware features. For more information on Sencha Touch 2.1, visit their <a href="http://www.sencha.com/products/touch/" target="_new">website</a>.</p>
<p>To get started, developers should <a href="http://www.sencha.com/products/touch/download/" target="_new">download the framework</a> and then check out the <a href="http://www.sencha.com/learn/Sencha_Touch" target="_new">Sencha Touch Learning Center</a>, where they will find code samples, videos and tutorials. To get an idea of what is possible using the framework, there are a variety of <a href="http://www.sencha.com/products/touch/demos/" target="_new">demo applications</a> showcasing the breadth and power of the platform. For the complete BlackBerry guide to Sencha Touch, refer to <a href="http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Introducing-Sencha-Touch-2-1-on-BlackBerry10/ta-p/1976695" target="_new"><br />
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Introducing-Sencha-Touch-2-1-on-BlackBerry10/ta-p/1976695<br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/11904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/11904/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=11904&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/11/sencha-touch-blackberry-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/83a3304d7f99cd7e5d2323b7338f7305?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveenm1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/11/img_00000119.png" medium="image">
			<media:title type="html">IMG_00000119</media:title>
		</media:content>
	</item>
		<item>
		<title>Best Practices for Internationalizing your BlackBerry WebWorks App</title>
		<link>http://devblog.blackberry.com/2012/06/internationalizing-webworks-app/</link>
		<comments>http://devblog.blackberry.com/2012/06/internationalizing-webworks-app/#comments</comments>
		<pubDate>Mon, 18 Jun 2012 14:09:53 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Java Development]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[blackberry webworks]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[sample code]]></category>
		<category><![CDATA[texts]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=9764</guid>
		<description><![CDATA[Demonstrating the best ways to internationalize your BlackBerry WebWorks application.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=9764&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter size-full wp-image-9769" src="http://rimdevblog.files.wordpress.com/2012/06/webworks.jpg?w=550&#038;h=255" alt="TITLE_IMAGE" width="550" height="255" /></p>
<p>Last month, we looked at <a href="http://devblog.blackberry.com/2012/05/app-internationalization" target="_new">how to internationalize your BlackBerry® Java® application</a>. In this post, we will look at how to internationalize your BlackBerry® WebWorks™ application. There are a few options for accomplishing this – let’s take a look.</p>
<h3><strong>Using JavaScript and storing all the texts locally</strong></h3>
<p>One common way to internationalize your web application is to remove all strings from your code and have them all in an object with key-value pairs. All the code exists locally and nothings get stored on the server side.</p>
<p>This looks something like:</p>
<pre>var strings = {
	"en" : {
		"BUTTON_CANCEL" : "Cancel",
		"BUTTON_SAVE" : "Save"
	},
	nl: {
		"BUTTON_CANCEL" : "Annuleer",
		"BUTTON_SAVE" : "Opslaan"
	}
}</pre>
<p>Now let&#8217;s assume you keep the chosen language somewhere in a variable called language. You can then access the right string for the user language, like with the cancel button text for example:</p>
<p>Strings[language].BUTTON_CANCEL</p>
<p>That will give you either &#8216;Cancel&#8217; or &#8216;Annuleer&#8217; depending on whether the language variable contains &#8216;en&#8217; or &#8216;nl&#8217;.</p>
<p><span id="more-9764"></span></p>
<h3><strong>Using JavaScript and storing all the texts on a remote server</strong></h3>
<p>Another way of internationalizing your application in BlackBerry WebWorks platform is to use the server side code. Unfortunately, JavaScript does not have the concept of a resource file, and strings that will be generated by JavaScript must be defined in the code.</p>
<p>The easiest approach to deal with this issue is to define your JavaScript strings dynamically in server-side code (Java/JSP, ASPX, PHP, etc.). The following example defines some string resources in a JavaScript script block at the top of a JSP page:</p>
<p><img class="alignnone size-full wp-image-9768" title="" src="http://rimdevblog.files.wordpress.com/2012/06/webworks-1.jpg?w=600&#038;h=142" alt="" width="600" height="142" /></p>
<p>Assuming the currentLocale object is set to English (US), the resulting block should look like this:</p>
<p><img class="alignnone size-full wp-image-9767" title="" src="http://rimdevblog.files.wordpress.com/2012/06/webworks-2.jpg?w=600&#038;h=216" alt="" width="600" height="216" /></p>
<p>When currentLocale is set to German (Germany) it should change to this:</p>
<p><img class="alignnone size-full wp-image-9766" title="" src="http://rimdevblog.files.wordpress.com/2012/06/webworks-3.jpg?w=600&#038;h=195" alt="" width="600" height="195" /></p>
<p>There are a couple things to keep in mind with this approach. First, any strings that are embedded in the files, whether JSP/ASPX/PHP/etc. or JavaScript .js files, must be externalized, i.e. the strings should be moved into the string resource block as demonstrated above, and replaced in the code with their variable names. Second, the JavaScript string resource block should be defined before any other embedded blocks or .js file includes that make use of these externalized strings. For example, the resource block should be defined before the following function is called:</p>
<p><img class="alignnone size-full wp-image-9765" title="" src="http://rimdevblog.files.wordpress.com/2012/06/webworks-4.jpg?w=500&#038;h=272" alt="" width="500" height="272" /></p>
<h3><strong>Using JavaScript Object Notation (JSON)</strong></h3>
<p>Finally, another way to add multi-language support to your BlackBerry WebWorks application is to use JSON objects. Here is a sample which illustrates the use of JSON objects and changes the text dynamically based on the user’s language selection:</p>
<pre>&lt;html&gt;
&lt;body&gt;
&lt;h2&gt;Internationalization Sample in WebWorks&lt;/h2&gt;
&lt;h3&gt;Select a language:&lt;/h3&gt;
&lt;p&gt;

&lt;select id="languagechoice" onChange="displayGreeting()" &gt;
  &lt;option value="1"&gt;English&lt;/option&gt;
  &lt;option value="2"&gt;French&lt;/option&gt;
  &lt;option value="3"&gt;Spanish&lt;/option&gt;
  &lt;option value="4"&gt;German&lt;/option&gt;
&lt;/select&gt;

&lt;br/&gt; 
&lt;br/&gt;
&lt;br/&gt;

 &lt;span id="greetings"&gt;&lt;/span&gt; &lt;br/&gt;
&lt;/p&gt;

&lt;script type="text/javascript"&gt;

function displayGreeting(){

 var lang = document.getElementById("languagechoice");
 var lang_value = lang.options[lang.selectedIndex].value; 

 var JSONObject_en = {"hello":"Hello, Welcome to Internalization of WebWorks Applications in English!"};
 var JSONObject_fr = {"hello":"Hello, Welcome to Internalization of WebWorks Applications in French!"};
 var JSONObject_es = {"hello":"Hello, Welcome to Internalization of WebWorks Applications in Spanish!"};
 var JSONObject_de = {"hello":"Hello, Welcome to Internalization of WebWorks Applications in German!"};

 if(lang_value == 1){
   document.getElementById("greetings").innerHTML=JSONObject_en.hello 
 }
 else if (lang_value == 2 ){
   document.getElementById("greetings").innerHTML=JSONObject_fr.hello
 }
 else if (lang_value == 3 ){
   document.getElementById("greetings").innerHTML=JSONObject_es.hello
 }
 else{
   document.getElementById("greetings").innerHTML=JSONObject_de   .hello
 }
}

&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/9764/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/9764/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=9764&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/06/internationalizing-webworks-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/83a3304d7f99cd7e5d2323b7338f7305?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveenm1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/06/webworks.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/06/webworks-1.jpg" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2012/06/webworks-2.jpg" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2012/06/webworks-3.jpg" medium="image" />

		<media:content url="http://rimdevblog.files.wordpress.com/2012/06/webworks-4.jpg" medium="image" />
	</item>
		<item>
		<title>BlackBerry App Internationalization: Language, currency and address support</title>
		<link>http://devblog.blackberry.com/2012/05/app-internationalization/</link>
		<comments>http://devblog.blackberry.com/2012/05/app-internationalization/#comments</comments>
		<pubDate>Thu, 31 May 2012 14:49:41 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[localized]]></category>
		<category><![CDATA[sample code]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=9641</guid>
		<description><![CDATA[How to localize a simple app on the BlackBerry platform.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=9641&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Did you know that you can internationalize your BlackBerry® application using the JSR 238? More specifically, you can do the following to your BlackBerry application so that your app is ready for the international market:</p>
<ul>
<li>Multiple language support</li>
<li>Localization of currency</li>
<li>Localization of addresses</li>
<li>Detecting which country the user is located in (in the event that you have certain content that you only have license to serve in certain geographies)</li>
</ul>
<p>In this blog post, we will look at the multiple language support in detail – the rest of the above topics will be covered in upcoming blog posts here on the Inside BlackBerry Developer’s Blog.</p>
<p><span id="more-9641"></span></p>
<p>All commercial applications these days should be localized, and BlackBerry uses net.rim.device.api.i18n package to enable seamless localization.</p>
<p>If your application is localized, it will be displayed in the local language out of the box. So if the default locale settings on one device are set to English and French on the other, the application will be displayed in the correct language on both devices without any need for interaction from the user.</p>
<h3><strong>Setting up a New BlackBerry Project</strong></h3>
<p>This blog post assumes that you should already know how to set up and configure a new BlackBerry project in Eclipse™. If you need a reminder, refer to this <a href="http://supportforums.blackberry.com/t5/Java-Development/Writing-Your-First-Application/ta-p/442771" target="_new">link</a>.</p>
<p>Here is a sample code to show how to localize a simple application:</p>
<p><code>package com.rim.samples.local;</p>
<p>import net.rim.device.api.ui.MenuItem; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.i18n.*;</p>
<p>public class Local extends UiApplication {<br />
public static void main(String[] args) { Local theApp = new Local();</p>
<p>theApp.enterEventDispatcher();<br />
}</p>
<p>public Local() {<br />
pushScreen(new LocalScreen());<br />
}<br />
}</p>
<p>final class LocalScreen extends MainScreen implements LocalDemoResource {</p>
<p>private static ResourceBundle _res = ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME);<br />
LabelField title;<br />
RichTextField rtf;</p>
<p>public LocalScreen() {<br />
super();<br />
title	=	new	LabelField(_res.getString(FIELD_TITLE), LabelField.ELLIPSIS| LabelField.USE_ALL_WIDTH);<br />
setTitle(title);<br />
rtf = new RichTextField(_res.getString(MESSAGE));<br />
add(rtf);<br />
}</code></p>
<p>If you read the code carefully, you will notice that our LocalScreen class implements LocalDemoResource. Also new is the ResourceBundle variable _res which is used when creating our fields. To be able to use and explain them, we will first create our resource files.</p>
<h3><strong>Creating resource files</strong></h3>
<p>To be able to localize your application, you need to create .rrc and .rrh files. It is quite easy to create these files in Eclipse.  Click on File-&gt;New-&gt;BlackBerry Resource File and browse to the location of your package.  You will need to name your header file here &#8212; let’s call this file LocalDemo.rrh (make sure you include the extension). Pressing Finish on this screen will now allow you to implement LocalDemoResource interface.</p>
<p>If you called your .rrh file “exampleResource.rrh”, then the interface name would be exampleResource.  Now we need to create resource files for each language:</p>
<p>For default language: LocalDemo.rrc<br />
French: LocaLDemo_fr.rrc<br />
Spanish: LocalDemo_es.rrc.</p>
<p>The parts of the name _fr and _es are default endings for those languages and cannot be changed.<br />
If you did everything correctly, you should have 4 resource files just under your Local.java file.  Now we need to edit these files. Double click on the LocalDemo.rrh file &#8212; this is the one which contains all the keys.  Select the ‘Add Key’ Button and add the following fields:</p>
<p>CLOSE, ENGLISH, FIELD_TITLE, FRENCH, GOODBYE, MESSAGE, SPANISH.</p>
<p>You do not need to enter the values on this page.  When you double-click on the LocalDemo.rcc file, it will open the screen where you can fill in the values. You can access the values for French and Spanish locales by clicking on the tab on the bottom of the window (marked fr or es), or by double-clicking on the file name.</p>
<p>As you can see, special characters used in these languages such as ‘ó’ in word “adios” or ‘ñ’ in “Español” were used. The system will use those characters and display them when needed. You can use any Unicode characters here, which means you can support languages such as Chinese or Arabic.</p>
<p>And that’s it! That’s all you have to do add multiple language support to your BlackBerry application.  For more info and to see a full working demo, refer to this link:<br />
<a href="http://supportforums.blackberry.com/t5/Java-Development/Introduction-to-Resource-Bundles/ta-p/507362" target="_new"><br />
http://supportforums.blackberry.com/t5/Java-Development/Introduction-to-Resource-Bundles/ta-p/507362<br />
</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/9641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/9641/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=9641&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/05/app-internationalization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/83a3304d7f99cd7e5d2323b7338f7305?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveenm1</media:title>
		</media:content>
	</item>
		<item>
		<title>No Drain, No Pain: Tips for Saving Battery Life Through Applications</title>
		<link>http://devblog.blackberry.com/2012/03/battery-drain-apps/</link>
		<comments>http://devblog.blackberry.com/2012/03/battery-drain-apps/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 15:33:23 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[battery drain]]></category>
		<category><![CDATA[BlackBerry smartphone]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=8705</guid>
		<description><![CDATA[Learn about some simple techniques to improve battery life and to get some vital stats about the cost of certain actions in an application on a BlackBerry smartphone.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=8705&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter size-full wp-image-8733" src="http://rimdevblog.files.wordpress.com/2012/03/9860_blk_eng_gen_adangle.jpg?w=550&#038;h=440" alt="TITLE_IMAGE" width="550" height="440" /></p>
<p>The topic of battery management on BlackBerry® smartphones seems to come up time and time again. I decided to take some time and write this blog post on the topic to share some of the tips, tricks and best practices which will make your BlackBerry application a good citizen on the BlackBerry smartphone. Hopefully, you’ll learn some simple techniques to improve battery life and to get some vital stats about the cost of certain actions in an application.</p>
<p>Generally, there are three main states that your BlackBerry application will go through in the device:</p>
<ol>
<li>App is in the foreground, backlight is on, and device is unlocked (i.e. user is in theory interacting with the app)</li>
<li>App is in the foreground, and either the backlight is off or the device is locked (i.e. user was using the app but has since let the device go dormant)</li>
<li>App is running in the background (backlight and device lock state don’t matter)</li>
</ol>
<p>We will not worry too much about the first state, since your application can use as much as battery power it needs, but we will focus on the second and third states, looking at possible ways to prevent the battery from draining too quickly. Here are some of the tips that you can use to make your application be a good citizen on the device.</p>
<p><span id="more-8705"></span></p>
<p><strong>Tip #1:</strong> If your application is running in the background, then only run what needs to be run. For example, when your application is in the background, threads such as UI, animation and media should be paused. Your application should treat itself as being in the background when the backlight is out or the lock screen is up. One way of identifying whether device is locked or not, is to use the <code>net.rim.device.api.system.ApplicationManager. IsSystemLocked ()</code> method. You can also use the <code>net.rim.device.api.ui.UiApplication.getUiApplication ().isForeground ()</code> method to determine if the application is in the foreground or not.</p>
<p>Finally, you can use <code>net.rim.device.api.system.Display.getProperties ()</code> &amp; <code>Display.DISPLAY_PROPERTY_REQUIRES_BACKLIGHT</code> to see whether the backlight is on or not.</p>
<p><strong>Tip #2:</strong> Use the Profiler in the BlackBerry Java IDE to confirm that you contribute as close to 0% extra CPU usage when in the background. Every few % CPU used equals about 5 mA above device idle. Read more information about <a href="http://docs.BlackBerry.com/en/developers/deliverables/35144/Optimizing_code_using_the_profiler_1889818_11.jsp" target="_new">the Profiler and its usage</a>.</p>
<p><strong>Tip #3:</strong> Watch the repaint () operations, regardless of whether application is in the background or foreground, repaint the screen only if and when needed. Especially, if you are rendering OpenGL, it is very battery intensive.</p>
<p><strong>Tip #4:</strong> Retrieving an autonomous GPS (aGPS) fix is one of the most expensive battery operations on the device. Alternatively, you can use BlackBerry Criteria to specify the type of fix you need and also you can choose the level of accuracy you need. The details on this subject can be found <a href="http://supportforums.blackberry.com/t5/Java-Development/Location-APIs-Start-to-finish/ta-p/571949" target="_new">here</a>.</p>
<p><strong>Tip #5:</strong> If you detect low battery, consider notifying the user or stopping battery intensive functions such as LBS, excessive logging, active cellular radio and garbage collection.</p>
<p>For logging, you can the log level to minimum in the Event Logger. This can be achieved using <code>net.rim.device.api.system.EventLogger. getMinimumLevel ()</code>.</p>
<p>For cellular radio, you can use push instead of poll. Pushing is vastly more efficient than polling. Whenever you see your application polling regularly for data you should seriously consider implementing the BlackBerry Push service.</p>
<p>For garbage collection, you can use the BB JDE’s Memory Stats or Objects tools to monitor your garbage.</p>
<p>I hope you found these tips useful. If you have your own, I’d like to see them – please share in the comments section below.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/8705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/8705/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=8705&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2012/03/battery-drain-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/83a3304d7f99cd7e5d2323b7338f7305?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveenm1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2012/03/9860_blk_eng_gen_adangle.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
		<item>
		<title>BlackBerry Smartphone Simulators Overview</title>
		<link>http://devblog.blackberry.com/2011/04/blackberry-simulators/</link>
		<comments>http://devblog.blackberry.com/2011/04/blackberry-simulators/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 13:12:42 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[hotswap]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JDE]]></category>
		<category><![CDATA[simulator]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=3499</guid>
		<description><![CDATA[An overview of the various conditions that can be set using a BlackBerry Smartphone Simulator, in order to assist with app development.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=4816&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-3505" title="BlackBerry Torch" src="http://rimdevblog.files.wordpress.com/2011/04/torch.jpg?w=600&#038;h=601" alt="BlackBerry Torch" width="600" height="601" /></p>
<p>For all you hard-working developers out there, the BlackBerry® Smartphone Simulator is an essential tool: it enables you to run BlackBerry® smartphone applications on your computer. The BlackBerry Smartphone Simulator includes the BlackBerry native applications that are typically available on BlackBerry smartphones, and enables you to load and test your own applications. You can even simulate and test various connectivity and state changes – definitely useful when you’re trying out a new app! When you use the BlackBerry Smartphone Simulator to perform testing, you might need to simulate additional BlackBerry services; the BlackBerry® Email and MDS Services Simulator Package are available for this purpose.</p>
<p>In short, the BlackBerry Smartphone Simulator allows you simulate all the aspects of the BlackBerry smartphone including battery conditions, network conditions, SD Card, GPS capabilities and more.  In this post, I will briefly describe how to simulate some of the functionalities of the BlackBerry smartphone.  Before we go further, let’s quickly recap where you can find the latest BlackBerry Smartphone Simulators.  All the most up-to-date BlackBerry simulators can be found at the <a title="BlackBerry Smartphone Simulators" href="http://us.blackberry.com/developers/resources/simulators.jsp" target="_new">BlackBerry Smartphone Simulators</a> page under the Developer Resources section of the website.  You can also head here for <a href="http://docs.blackberry.com/en/developers/subcategories/?userType=21&amp;category=BlackBerry+Smartphone+Simulator" target="_new">the complete instructions on installation details</a>, and you can find more detailed information on the BlackBerry Smartphone Simulators at the <a href="http://docs.blackberry.com/en/developers/subcategories/?userType=21&amp;category=BlackBerry+Smartphone+Simulator" target="_new">BlackBerry Documentation</a> site.</p>
<p><span id="more-4816"></span></p>
<h2>How to Simulate Battery Conditions</h2>
<p><img class="aligncenter size-full wp-image-3503" title="battery" src="http://rimdevblog.files.wordpress.com/2011/04/battery.jpg?w=245&#038;h=181" alt="" width="245" height="181" /></p>
<ol>
<li>On the <strong>Simulate</strong> menu, click <strong>Battery Properties</strong>.</li>
<li>Set one of the following options:</li>
</ol>
<table border="0" cellpadding="5" width="80%">
<tbody>
<tr>
<td width="30%"><strong>Option</strong></td>
<td width="50%"><strong>Description</strong></td>
</tr>
<tr>
<td>Full</td>
<td>The battery level is sufficient for BlackBerry smartphone and network use.</td>
</tr>
<tr>
<td>Low</td>
<td>The BlackBerry smartphone alerts the user, but remains turned on and can still use the network.</td>
</tr>
<tr>
<td>Very Low</td>
<td>The BlackBerry smartphone cannot access the network, but the device remains turned on. Camera flash is disabled.</td>
</tr>
<tr>
<td>Dead</td>
<td>The BlackBerry device turns off immediately. If you select this option, the BlackBerry Smartphone Simulator shuts down.</td>
</tr>
<tr>
<td>Other</td>
<td>This option enables you to specify the battery level as a percentage.</td>
</tr>
</tbody>
</table>
<h2>How to Simulate Network Coverage</h2>
<p><img class="aligncenter size-full wp-image-3502" title="network-coverage" src="http://rimdevblog.files.wordpress.com/2011/04/network-coverage.jpg?w=400&#038;h=137" alt="" width="400" height="137" /></p>
<p>The BlackBerry Smartphone Simulator can simulate various states of network coverage, from a strong signal to a very weak signal. The BlackBerry Smartphone Simulator can also simulate a loss of network coverage.</p>
<p><strong>Add a network</strong></p>
<ol>
<li>On the <strong>Simulate</strong> menu, click <strong>Network Properties.</strong></li>
<li>Click <strong>Add</strong>.</li>
<li>Type the network properties in the dialog.</li>
<li>Click <strong>OK</strong>.</li>
</ol>
<p><strong>Set the network signal strength</strong></p>
<ol>
<li>On the Simulate menu, click Network Properties.</li>
<li>Select the network you want to simulate from the Networks list.</li>
<li>If you want to edit the network properties, click Edit and type new values. Click OK.</li>
<li>Select or clear the In coverage check box.</li>
<li>Move the Signal strength (RSSI) slide bar to set a value. The signal strength can be between -120 dBm and -40dBm.</li>
</ol>
<h2>How to Simulate a Media Card</h2>
<p><img class="aligncenter size-full wp-image-3501" title="microsd" src="http://rimdevblog.files.wordpress.com/2011/04/microsd.jpg?w=218&#038;h=162" alt="" width="218" height="162" /></p>
<p>The BlackBerry Smartphone Simulator loads and saves the media card image to <strong>&lt; session_name &gt;*.sdcard</strong> in the working directory, unless you have set the <strong>/sdcard=&lt; path &gt;</strong> option. When the simulator starts, it loads the media card image for the BlackBerry smartphone profile. If no image exists or you have specified <strong>/clear-sdcard</strong>, the BlackBerry Smartphone Simulator will create a new media card image when the simulator starts. The size of the media card image is 32MB, unless you specify otherwise using <strong>/sdcardsize=&lt; size &gt;</strong>. In this case, you must clear the existing card image using <strong>/clear-sdcard</strong> to create a new card with the specified size. If a media card image exists, its size will be retained even if you specify a different size using the <strong>/sdcard-size</strong> command.</p>
<p>The BlackBerry Smartphone Simulator inserts the media card within the BlackBerry Smartphone Simulator unless you specify <strong>/no-sdcard-inserted</strong>.</p>
<p><strong>Change the media card</strong></p>
<ol>
<li>On the <strong>Simulate</strong> menu, click <strong>Change SD Card</strong>.</li>
<li>Complete one of the following tasks:</li>
</ol>
<table border="0" cellpadding="5" width="100%">
<tbody>
<tr>
<td width="40%"><strong>Task</strong></td>
<td width="60%"><strong>Steps</strong></td>
</tr>
<tr>
<td>Specify a new media card</td>
<td>In the <strong>Current SD Card</strong> list, click a media card. To specify no card, click <strong>None</strong>.</td>
</tr>
<tr>
<td>Add a media card to the <strong>Current SD Card</strong> list from a file</td>
<td>a. In the <strong>SD Card</strong> dialog box, click <strong>Add SD Image</strong>.<br />
b. Navigate to the location of the media card image file.<br />
c. Click the media card image file.<br />
d. Click <strong>Open</strong>.</td>
</tr>
<tr>
<td>Create a new media card</td>
<td>a. In the <strong>SD Card</strong> dialog box, click <strong>Mount Directory</strong>.<br />
b. Navigate to the location where you want to save the media card image.<br />
c. Click <strong>OK</strong></td>
</tr>
<tr>
<td>Delete a media card</td>
<td>a. In the <strong>Current SD Card</strong> list, click the media card.<br />
b. Click <strong>Yes.</strong><br />
c. Click <strong>Close</strong>.</td>
</tr>
</tbody>
</table>
<h2>How to Use Hotswap with the BlackBerry Simulator</h2>
<p><img class="aligncenter size-full wp-image-3500" title="simulator" src="http://rimdevblog.files.wordpress.com/2011/04/simulator.jpg?w=450&#038;h=445" alt="" width="450" height="445" /></p>
<p>Hotswap, the ability to reload an application on to a running simulator without having to stop and start the simulator, is now part of the 5.0 BlackBerry Simulator.</p>
<p><strong>BlackBerry Smartphone JDE 5.0</strong></p>
<p>In JDE 5.0, you need to change your Simulator preferences. Toggle the “Reuse Simulator” checkbox to on.  (If the Reuse Simulator checkbox is grayed out, that simulator is not compatible with Hotswap.)  Then, when debugging your application, you can change the code at any time and redeploy it without restarting the simulator by going to Debug &gt; Restart or pressing Shift-F9.</p>
<p><strong>BlackBerry® Java® Plug-in or BlackBerry® Web Plug-in</strong></p>
<p>No changes are needed &#8211; you no longer need to close your simulator.  While the simulator is open, simply make changes to your code and press debug &#8211; it will automatically redeploy the change to the running simulator.</p>
<p>Do you have any questions or comments about using the BlackBerry Smartphone Simulators?  Please leave a comment and let us know!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/4816/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/4816/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=4816&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2011/04/blackberry-simulators/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/83a3304d7f99cd7e5d2323b7338f7305?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">naveenm1</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2011/04/torch.jpg" medium="image">
			<media:title type="html">BlackBerry Torch</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2011/04/battery.jpg" medium="image">
			<media:title type="html">battery</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2011/04/network-coverage.jpg" medium="image">
			<media:title type="html">network-coverage</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2011/04/microsd.jpg" medium="image">
			<media:title type="html">microsd</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2011/04/simulator.jpg" medium="image">
			<media:title type="html">simulator</media:title>
		</media:content>
	</item>
	</channel>
</rss>
