<?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>Michael's Weblog</title>
	<atom:link href="http://yamspog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yamspog.wordpress.com</link>
	<description>musings on software development</description>
	<lastBuildDate>Sun, 28 Aug 2011 06:19:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yamspog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Michael's Weblog</title>
		<link>http://yamspog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yamspog.wordpress.com/osd.xml" title="Michael&#039;s Weblog" />
	<atom:link rel='hub' href='http://yamspog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Editing an image</title>
		<link>http://yamspog.wordpress.com/2009/11/04/editing-an-image/</link>
		<comments>http://yamspog.wordpress.com/2009/11/04/editing-an-image/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 00:29:34 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[blackberry]]></category>
		<category><![CDATA[image manipulation]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[annotation]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/11/04/editing-an-image/</guid>
		<description><![CDATA[&#160; When you are working with a screen, it is pretty obvious how to overlay text, images and custom shapes.&#160; All the heavy-lifting is accomplished in the onPaint functions and through the graphics object.&#160; I recently ran into an issue where I need to give some rudimentary image editing capabilities.&#160; In essence, I need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=39&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>When you are working with a screen, it is pretty obvious how to overlay text, images and custom shapes.&#160; All the heavy-lifting is accomplished in the onPaint functions and through the graphics object.&#160; I recently ran into an issue where I need to give some rudimentary image editing capabilities.&#160; In essence, I need to display an image and allow the user to annotate the image with text and then save the image.</p>
<p>The first part is easy to accomplish (I managed to find a few examples on how to pan around a large bitmap image), but the annotating of the image was a bit more difficult to accomplish.&#160; </p>
<p>My first iteration involved me having a custom class that kept track of the annotation and the annotation co-ordinates.&#160; Something along the lines of …</p>
<blockquote><p>class annotation {</p>
<p>public int x;</p>
<p>public int y;</p>
<p>public String text;</p>
<p>}</p>
</blockquote>
<p>However, this was fine for the onPaint function, but I couldn’t figure out how to merge these array of annotations with the actual bitmap.&#160; After some searching through forums I decided to resort to the intelli-sense built-in to the eclipse pluging, and there it was!&#160; the holy grail that I was looking for: graphics.</p>
<p>It turns out that you can pass a bitmap to the graphics class, and then use all the graphics functions to manipulate the underlaying bitmap.&#160;&#160; And because it uses the same graphics class as used in the onPaint, there was no learning curve.</p>
<p>So my code now looks like…</p>
<blockquote><p>protected void annotateImage(String s)     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Graphics g = new Graphics(_bmImage);      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; int globalX = _crossHairPos.getLeft() +&#160; _imagePos.getLeft() ;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; int globalY = _crossHairPos.getTop() + _imagePos.getTop();      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; g.drawText(s, globalX, globalY);      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=39&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/11/04/editing-an-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>EncodedImage &#8211; How to Resize</title>
		<link>http://yamspog.wordpress.com/2009/11/02/encodedimage-how-to-resize/</link>
		<comments>http://yamspog.wordpress.com/2009/11/02/encodedimage-how-to-resize/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 23:10:30 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[blackberry]]></category>
		<category><![CDATA[multiple devices]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[encodedimage]]></category>
		<category><![CDATA[resize image]]></category>
		<category><![CDATA[target multiple blackberry devices]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/11/02/encodedimage-how-to-resize/</guid>
		<description><![CDATA[&#160; I have been working on an application that has a number of navigation buttons.&#160; This buttons must always be displayed and I want them to take up about half the width of the screen.&#160; This is a simple problem when you have a single width to deal with, but I recently needed to port [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=38&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>I have been working on an application that has a number of navigation buttons.&#160; This buttons must always be displayed and I want them to take up about half the width of the screen.&#160; This is a simple problem when you have a single width to deal with, but I recently needed to port the application from the Bold to the Pearl handset.</p>
<p>I wanted to keep the same images but needed to resize based on the display’s width.&#160; There are trivial solutions easily found on the web (where the image’s size is cut in half) but nothing to set an arbitrary size.&#160; So here is my solution (so that I can remember it at a later time).</p>
<p>I know this is an obvious thing to do, but I am continually searching through old projects or the web to remember the details on how to accomplish this task.</p>
<p>The key thing to remember is that the value for the scaleImage is the <em>reciprical</em> of what you would expect.&#160; So if the scaled image is one half (1/2) of the original then your scale factor is (2/1).</p>
<blockquote><p>protected Bitmap scaleBitmap(EncodedImage ei, int newXSize, int newYSize)     <br />&#160;&#160;&#160; {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; int xScale = 0;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; int yScale = 0;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; int xSize = ei.getWidth();      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; int ySize = ei.getHeight();</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; xScale = Fixed32.div(xSize,newXSize);&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; yScale = Fixed32.div(ySize,newYSize);      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; return ei.scaleImage32(xScale, yScale).getBitmap();      <br />&#160;&#160;&#160; }</p>
</blockquote>
<p>You can add some refinements:</p>
<ol>
<li>keep the aspect ratio: just decide what dimension is the limiting factor for display and then apply that scale to both dimensions.</li>
<li>keep images a consistent size: put the size into your class that defines your presentation style</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=38&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/11/02/encodedimage-how-to-resize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Subversion (svn) onto Windows Server</title>
		<link>http://yamspog.wordpress.com/2009/10/22/installing-subversion-svn-onto-windows-server/</link>
		<comments>http://yamspog.wordpress.com/2009/10/22/installing-subversion-svn-onto-windows-server/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 23:05:08 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[revision control]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[source control]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/10/22/installing-subversion-svn-onto-windows-server/</guid>
		<description><![CDATA[&#160; Ignorance is Bliss This has got me angrified!&#160; There are no simple steps on how to install an SVN server onto a windows server.&#160; All the steps assume that you already have Apache installed.&#160; I understand that you can run SVN as a stand-alone installation but I want to run it in conjunction with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=37&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<blockquote><p>Ignorance is Bliss</p>
</blockquote>
<p>This has got me <strong>angrified</strong>!&#160; There are no simple steps on how to install an SVN server onto a windows server.&#160; All the steps assume that you already have Apache installed.&#160; I understand that you can run SVN as a stand-alone installation but I want to run it in conjunction with Apache and take advantage of single sign-in provided by integration with active directory.</p>
<p><font face="Verdana">I suddenly find myself eating my own words.&#160; After writing my tirade, I went back and found a couple complete svn packages. The one that I opted for is called Visual SVN (<a href="http://www.visualsvn.com">www.visualsvn.com</a>).&#160; They have both a free and a pay version.&#160; Being cheap, and generally against the principle of paying for open-source software, I opted for the free version.</font></p>
<p><font face="Verdana">My installation experience went something like this…</font></p>
<ol>
<li>download the msi package</li>
<li>double-click and follow the steps to create repository and users</li>
<li>run tortoise svn to access the newly created repository</li>
</ol>
<p><font face="Verdana">It couldn’t have been simpler or more elegant even if Apple had created the product!&#160; It may make the UNIX crowd angry as they seem to have created a product that does away with the arcanity of command line arguments, but these guys did an excellent job of bringing svn into the windows age.</font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=37&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/10/22/installing-subversion-svn-onto-windows-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>How to use resource files in your blackberry app</title>
		<link>http://yamspog.wordpress.com/2009/08/30/how-to-use-resource-files-in-your-blackberry-app/</link>
		<comments>http://yamspog.wordpress.com/2009/08/30/how-to-use-resource-files-in-your-blackberry-app/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 17:30:20 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[blackberry]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[globalization]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[resource file]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/08/30/how-to-use-resource-files-in-your-blackberry-app/</guid>
		<description><![CDATA[&#160; In a previous post I gave the steps on how to add resource files to your application.&#160; In today’s discourse I will describe how to update your application to use those resource files. They really are quite simple to use, provided that you realize the couple tricks. Follow these steps to reference the resource [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=35&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>In a previous <a href="http://yamspog.wordpress.com/2009/08/28/how-to-add-resource-file-to-provide-multi-lingual-support/" target="_blank">post</a> I gave the steps on how to add resource files to your application.&#160; In today’s discourse I will describe how to update your application to use those resource files.</p>
<p>They really are quite simple to use, provided that you realize the couple tricks.</p>
<p>Follow these steps to reference the resource file in your class.</p>
<h2>Step 1 – include the resource interface</h2>
<p><font face="Georgia">The magic of blackberry means that the resource files are converted into an interface and by implementing that interface on your class you get access to all the strings.</font></p>
<p><font face="Georgia">For example, my resource file is called ‘<strong>myApp</strong>.rrh’ and to include this resource file on my class, I do something like…</font></p>
<h3>public class myApp extends UiApplication extends <strong>myAppResource</strong></h3>
<blockquote><p>Trick #1 – The resource files’ interface name is an exact match to the resource file name + the key word ‘Resource’</p>
</blockquote>
<h2>Step 2 – include a reference to the resource</h2>
<p>create a static variable and include it in your class…</p>
<h3>private static ResourceBundle _res = ResourceBundle.getBundle(BUNDLE_ID,BUNDLE_NAME);</h3>
<blockquote><p>Trick #2 – BUNDLE_ID and BUNDLE_NAME are auto-generated by blackberry magic</p>
</blockquote>
<p>reference your resource through the key name defined in your header file…</p>
<h3>LabelField title = new LabelField(_res.getString(appName), LabelField.USE_ALL_WIDTH)</h3>
<h2>Step 3 – include a reference to a resource array</h2>
<p>You can also create a resource array.&#160; In the resource editor, right click your resource and select ‘ConvertToMultipleValues’.&#160; The interface for adding values to this resource array is a bit clunky but hey “a poor craftsman blames his tools”.</p>
<p>You access the values through a string array…</p>
<h3>String[] messages = _res.getStringArray(msg);</h3>
<p>And that is about it. </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:685e41be-2d51-4ba7-ac8d-028164711f5e" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/blackberry" rel="tag">blackberry</a>,<a href="http://technorati.com/tags/resource+file" rel="tag">resource file</a>,<a href="http://technorati.com/tags/globalization" rel="tag">globalization</a>,<a href="http://technorati.com/tags/localization" rel="tag">localization</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=35&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/08/30/how-to-use-resource-files-in-your-blackberry-app/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add resource file to provide multi lingual support</title>
		<link>http://yamspog.wordpress.com/2009/08/28/how-to-add-resource-file-to-provide-multi-lingual-support/</link>
		<comments>http://yamspog.wordpress.com/2009/08/28/how-to-add-resource-file-to-provide-multi-lingual-support/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 22:24:07 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/08/28/how-to-add-resource-file-to-provide-multi-lingual-support/</guid>
		<description><![CDATA[&#160; To reach the widest audience for your application you want to provide support for many different languages and cultures.&#160; This process is known as internationalization.&#160; The most common way of achieving this goal is through resource files for the different target languages (or cultures). The first step to using resources is to add the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=34&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>To reach the widest audience for your application you want to provide support for many different languages and cultures.&#160; This process is known as internationalization.&#160; The most common way of achieving this goal is through resource files for the different target languages (or cultures).</p>
<p>The first step to using resources is to add the resource files to your application (of course this is for the Blackberry plugin for Eclipse).</p>
<ol>
<li><font face="Georgia">open the package explorer and find your source package</font></li>
<li><font face="Georgia">from the context menu (right-click) OR file-&gt;new, select Other [you can also use ctrl-N]</font></li>
<li><font face="Georgia">open up the blackberry folder and select ‘Blackberry Resource File’</font></li>
<li><font face="Georgia">click next</font></li>
<li><font face="Georgia">Select the folder where you wish to save the file.&#160; Generally you want to include it with your source code.</font></li>
<li><font face="Georgia">type in the name of your resource file ‘<strong>applicationName.rrh</strong>’ .&#160; IMPORTANT: the file must end with rrh.</font></li>
<li><font face="Georgia">you will see that you have two files:&#160; applicationName.rrh and applicationName.rrc.&#160; the RRH file defines the symbols for each of your strings, and the RRC contains the strings.</font></li>
<li><font face="Georgia">add in a file for each culture that you wish to include using the format: <strong><em>applicationName_xxx.rrc</em></strong>.&#160; You must replace <em><strong>xxx</strong></em> with the culture abbreviation and you need the underscore</font></li>
<li><font face="Georgia">You have now created your files.&#160; Click on the files and start editing to your heart content.</font></li>
</ol>
<p>Some of the common cultures:</p>
<table border="0" cellspacing="0" cellpadding="2" width="600">
<tbody>
<tr>
<td valign="top" width="300"><strong>Language</strong></td>
<td valign="top" width="300"><strong>neutral culture abbreviation</strong></td>
</tr>
<tr>
<td valign="top" width="300">English</td>
<td valign="top" width="300">en</td>
</tr>
<tr>
<td valign="top" width="300">French</td>
<td valign="top" width="300">fr</td>
</tr>
<tr>
<td valign="top" width="300">spanish</td>
<td valign="top" width="300">es</td>
</tr>
<tr>
<td valign="top" width="300">Chinese</td>
<td valign="top" width="300">zh</td>
</tr>
<tr>
<td valign="top" width="300">Japanese</td>
<td valign="top" width="300">ja</td>
</tr>
</tbody>
</table>
<p>Culture definitions:</p>
<table border="0" cellspacing="0" cellpadding="2" width="602">
<tbody>
<tr>
<td valign="top" width="159">invariant culture</td>
<td valign="top" width="441">This culture category is culture-insensitive. The category is to be used as essentially a default culture when consistency is desired.          </p>
<p>One situation where this category might be desirable to use is creating a trial application with a hard-coded expiration date. Using an invariant will allow you to check for a specific date, regardless of the culture&#8217;s format, which will greatly simplify the task of comparing these dates.           </p>
<p>The invariant culture is not based on the English language per se, but it is associated with it and bears more similarities to it than to any other identifiable culture.           </td>
</tr>
<tr>
<td valign="top" width="159">Neutral Culture</td>
<td valign="top" width="441">A neutral culture is associated with a language but has no relationship to countries or regions. For instance, the English spoken in England is different from that spoken in the United States. The same holds true for Spanish spoken in Mexico versus that spoken in Spain.          </p>
<p>Although neutral cultures, like the invariant culture, might be tempting to use, they should be avoided as well, if possible, for the same reasons that invariants should be avoided. The language spoken in different countries that are covered by a neutral culture will almost certainly be different in at least a few respects. In reality, the differences will be many.           </td>
</tr>
<tr>
<td valign="top" width="159">Specific Culture</td>
<td valign="top" width="441">This is the most precise of the three categories and is represented by a neutral culture, a hyphen, and then a specific culture abbreviation. For instance, in the designations &quot;en-CA&quot; and &quot;en-US&quot;, <i>en</i> represent the neutral culture (English), and <em>CA</em> and <i>US</i> represent the specific culture (Canada and the United States, respectively).</td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=34&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/08/28/how-to-add-resource-file-to-provide-multi-lingual-support/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>Blackberry simulator and Internet access</title>
		<link>http://yamspog.wordpress.com/2009/08/10/blackberry-simulator-and-internet-access/</link>
		<comments>http://yamspog.wordpress.com/2009/08/10/blackberry-simulator-and-internet-access/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 22:32:11 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[blackberry]]></category>
		<category><![CDATA[MDS]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/08/10/blackberry-simulator-and-internet-access/</guid>
		<description><![CDATA[“communication is 9 parts listening and 1 part speaking” I ran across another gotcha today when I was trying to get my application to make a web service call.&#160; I could not communicate with the internet.&#160; Either I’m getting better at this or I got lucky, but figuring out the solution only took about an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=33&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>“communication is 9 parts listening and 1 part speaking”</p>
<p>I ran across another gotcha today when I was trying to get my application to make a web service call.&#160; I could not communicate with the internet.&#160; Either I’m getting better at this or I got lucky, but figuring out the solution only took about an hour this time.&#160; The help files that I ran across were actually helpful this time.</p>
<p>&#160;</p>
<p>The easiest way to test if your blackberry simulator has internet access is to use the ‘Browser’ from inside the simulator.&#160; If you can open a web page then your applications will have network access.</p>
<p>&#160;</p>
<p>The key to this whole thing is <strong>MDS</strong> (Mobile Data System?) and activating it automatically when you start the blackberry simulator.&#160; Once I followed these steps (as taken from Eclipse Help system) everything worked just fine!</p>
<blockquote><p>&#160;</p>
<h6>Start the BlackBerry MDS Simulator when you start the BlackBerry Smartphone Simulator <a name="wp1060915"></a></h6>
<ol>
<li>On the <b>Run</b> menu, click <b>Debug Configurations </b>or<b> Run Configurations</b>.<a name="wp1060916"> </a></li>
<li>Perform one of the following tasks:<a name="wp1066431"> </a>
<ul>
<li>To work with an existing start configuration, under <b>BlackBerry Simulator</b>, select a start configuration. <a name="wp1066432"></a></li>
<li>To work with a new start configuration, right-click <b>BlackBerry Simulator</b>, select <b>New</b>.<a name="wp1066438"> </a></li>
</ul>
</li>
<li>Click the <b>Simulator</b> tab.<a name="wp1044486"> </a></li>
<li>Click the <b>General</b> tab.<a name="wp1065035"> </a></li>
<li>Select the <b>Launch Mobile Data System Connection Service (MDS-CS) with simulator</b> option.<a name="wp1044487"> </a></li>
<li>Click <b>OK</b>.<a name="wp1044488"> </a></li>
</ol>
</blockquote>
<p>&#160;</p>
<p>The keywords that I used to find this …</p>
<ul>
<li>Test a BlackBerry Application that uses an HTTP connection. </li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=33&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/08/10/blackberry-simulator-and-internet-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>Blackberry Applications</title>
		<link>http://yamspog.wordpress.com/2009/08/07/blackberry-applications/</link>
		<comments>http://yamspog.wordpress.com/2009/08/07/blackberry-applications/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 20:24:17 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[blackberry]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/08/07/blackberry-applications/</guid>
		<description><![CDATA[“The secret to winning at roulette is to know when you are ahead.” First off, this post is more touchy-feely than about any concrete details.&#160; It is more a summary of what has worked and what hasn’t worked.&#160; Later on I will go into more code details but I wanted to get some initial thoughts [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=32&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>“The secret to winning at roulette is to know when you are ahead.”</p>
</blockquote>
<p>First off, this post is more touchy-feely than about any concrete details.&#160; It is more a summary of what has worked and what hasn’t worked.&#160; Later on I will go into more code details but I wanted to get some initial thoughts out.</p>
<p>Well, here I am a week or so later and I have made some great strides forward.&#160; I have been working on a crazy little app that takes a phone number, decodes from the number to letters and displays a list of the resulting ‘words’.</p>
<p>For example: 228 –&gt; { abc, abc, tuv } provides {aat, aau, aav, abt, abu, abv,<strong> act</strong>, acu, acv, <strong>bat</strong>, bau, bav, bbt, bbu, bbv, <strong>cat</strong>, cau, cav, cbt, cbu, cbv, cct, ccu, ccv }</p>
<p>It isn’t terribly useful but it provides a framework to explore the API and learn how to put the pieces together.</p>
<p>Some of the things that I have learned:</p>
<ol>
<li><font face="Georgia">Managers are important</font></li>
<li><font face="Georgia">Creating your own custom controls by overriding the basic ‘field’&#160; controls are essential</font></li>
<li><font face="Georgia">If you want to impress people then you must know about <strong>paint</strong>()ing</font></li>
<li><font face="Georgia">That people are quite forgiving and accepting on the blackberry forums</font></li>
</ol>
<h2>Importance of managers</h2>
<p>It is debatable on whether PHBs are important in any role other than to provide a focus of scorn and ridicule from their employees.&#160; Hey wait a minute, I’m not talking about that talk of manager; I’m talking about this type of <a href="http://www.blackberry.com/developers/docs/4.0.2api/net/rim/device/api/ui/Manager.html" target="_blank">manager</a>.</p>
<p>I learned that to correctly position, navigate and style an application you have to understand how the managers work.&#160; I started out by using verticalFieldManager and horizontalFieldManagers to get the layout that I wanted.&#160; However, I ran into problems creating the style that I desired.&#160; I often had colours not extending the full width of the screen or I had navigation issues or the controls were all left-aligned.</p>
<p>Now, looking back, I’m sure that I could have used the provided managers and just provided my own delegates during construction.&#160; However I decided to create my own custom manager and that made a huge difference in reaching my goal of learning about the framework and getting the app looking and reacting how I wanted it to.&#160; </p>
<p>I will definitely give details on my manager experience in a future discussion.</p>
<h2>Creating custom controls</h2>
<p>As you can imagine with an application that takes in a phone number, I had to have quite a few buttons that match up with a phone’s keypad.&#160; I started out using the ButtonField but it quickly became evident that I would have problems with colours and event handling.&#160; </p>
<p>I decided to override the base &#8216;Field’ class and create my own button.&#160; It was quite simple, once I learned how to override essential base methods.</p>
<ul>
<li><font face="Georgia">getPreferredWidth – used to set the width of your field</font></li>
<li><font face="Georgia">getPreferredHeight – used to set the height of your field</font></li>
<li><font face="Georgia">layout – used to set the ‘extent’ of your control</font></li>
<li><font face="Georgia">paint – oh, the key stone of functions</font></li>
<li><font face="Georgia">onFocus – fires when field receives focus</font></li>
<li><font face="Georgia">onUnFocus – fires when field loses focus</font></li>
<li><font face="Georgia">keyChar – fires when field receives a key event</font></li>
<li><font face="Georgia">navigationClick – fires when field receives a wheel or touch event</font></li>
</ul>
<h2>Paint, Paint, Paint</h2>
<p>Oh yes, get to know it, get to love it, get to hate it.&#160; In my brief experience, this is THE function to know about if you want your application to look anything other than a VT100 terminal application.&#160; Obviously, this is where you create your own look and feel and impose your style ideals on your unsuspecting customers.</p>
<p>Oh, when you look into this function, also get to learn about Graphic class and how to create your own contexts</p>
<h2>Blackberry forums</h2>
<p>While searching for how to accomplish my goals I have read many a post where individuals asked and (much to my surprise) received help.</p>
<p>I must say that people on the forums are very forgiving and accepting and generally helpful.&#160; The main challenge that I have found is typing the correct keywords into Google to find the appropriate thread.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:9a654bdd-541e-43b4-90fa-f9bd38ed117c" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/blackberry" rel="tag">blackberry</a>,<a href="http://technorati.com/tags/development" rel="tag">development</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=32&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/08/07/blackberry-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>Step by Step &#8211; update blackberry jde component for eclipse</title>
		<link>http://yamspog.wordpress.com/2009/07/27/step-by-step-update-blackberry-jde-component-for-eclipse/</link>
		<comments>http://yamspog.wordpress.com/2009/07/27/step-by-step-update-blackberry-jde-component-for-eclipse/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 20:44:44 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/07/27/step-by-step-update-blackberry-jde-component-for-eclipse/</guid>
		<description><![CDATA[&#160; “Knowing is half the battle” In a previous post I described how to install and configure the Blackberry development environment.&#160; I was quite excited when I got it working and could work on the first hello world application.&#160; However, it soon became evident that if I wanted to take advantage of any cool touch [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=30&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><strong>“Knowing is half the battle”</strong></p>
<p><strong>In</strong> a previous post I described how to install and configure the Blackberry development environment.&#160; I was quite excited when I got it working and could work on the first hello world application.&#160; However, it soon became evident that if I wanted to take advantage of any cool touch features or target the widely distributed pearl handsets I had to update my JDE components.</p>
<p>Again, I spent several days trying to figure out how to update the Eclipse plug-in.&#160; It was fairly straight-forward in downloading and updating the components for the Blackberry JDE but what was not so self-evident was updating the Eclipse plugin.</p>
<h2>Updating Blackberry JDE Plugin for Eclipse</h2>
<p>There is an automated method for updating the plugin that takes advantage of eclipse’s self-updater.&#160; However, I was unable to get this working and by perusing other <a href="http://troyscott.ca/2009/07/13/error-installing-the-blackberry-plug-in-for-eclipse/" target="_blank">posts</a> and boards it became evident that others had similar problems.</p>
<p>I’m hoping that these steps will work (however, RIM has a nasty habit of moving pages around so I’m hoping these links stay constant for a reasonable period of time).</p>
<ol>
<li>Download and save the zip file for the Appropriate JDE component from <a href="http://na.blackberry.com/eng/developers/javaappdev/javaeclipseplug.jsp" target="_blank">http://na.blackberry.com/eng/developers/javaappdev/javaeclipseplug.jsp</a>.&#160; Note: you will want to scroll down to the bottom of the page.</li>
<li>Remember where you save the Zip file.&#160; You won’t have to un-zip as Eclipse likes reading directly from the zip archive.</li>
<li>Start up eclipse</li>
<li>Select Help-&gt;Software Updates</li>
<li>Click ‘Add Site’</li>
<li>Click ‘archive’, browse and select the newly downloaded zip file.</li>
<li>Wait for eclipse to import.</li>
</ol>
<h2>Updating Blackberry workspace to use different JDE Component</h2>
<p>Once you have downloaded and installed the appropriate JDE, you will need to change the target of your blackberry workspace.</p>
<ol>
<li><font face="Georgia">Start up eclipse and load your workspace (should be default unless you are working on multiple projects).</font></li>
<li><font face="Georgia">Choose Blackberry-&gt;Configure Blackberry Workspace</font></li>
<li><font face="Georgia">Select, on the LHS, Blackberry JDE –&gt; Installed Components</font></li>
<li><font face="Georgia">Choose the target component and hit ‘OK’</font></li>
<li><font face="Georgia">Wait till eclipse finishes thinking and you are good to go.</font></li>
</ol>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:1675bb04-8faf-4bcf-8852-d0784a8b2874" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/Blackberry+JDE" rel="tag">Blackberry JDE</a>,<a href="http://technorati.com/tags/Blackberry+development" rel="tag">Blackberry development</a>,<a href="http://technorati.com/tags/Eclipse" rel="tag">Eclipse</a>,<a href="http://technorati.com/tags/JDE+Component" rel="tag">JDE Component</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=30&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/07/27/step-by-step-update-blackberry-jde-component-for-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up Blackberry Development Environment</title>
		<link>http://yamspog.wordpress.com/2009/07/24/setting-up-blackberry-development-environment/</link>
		<comments>http://yamspog.wordpress.com/2009/07/24/setting-up-blackberry-development-environment/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 22:01:07 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/07/24/setting-up-blackberry-development-environment/</guid>
		<description><![CDATA[&#160; “The best defense is a good offense.” I have decided to leave out the rant (well, perhaps some will slip in) and just stick to the facts.&#160; As mentioned earlier, I have spent the better part of a week trying to get my development environment setup and running.&#160; I have been frustrated by the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=29&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<h3>“The best defense is a good offense.”</h3>
<p>I have decided to leave out the rant (well, perhaps some will slip in) and just stick to the facts.&#160; As mentioned earlier, I have spent the better part of a week trying to get my development environment setup and running.&#160; I have been frustrated by the inaccurate information, moved information and knowledge assumptions that have been made on various sites and discussion boards.&#160; I am trying to lay out the base steps so that even a trained <a href="http://www.googlemonkeys.com" target="_blank">monkey</a> can get things working.</p>
<p>The original set of tutorials that I tried to follow can be found <a href="http://na.blackberry.com/eng/developers/resources/tutorials.jsp" target="_blank">here</a>.</p>
<h2>Set-up Java </h2>
<p>The first part is to install the necessary java files on your computer.&#160; These files install the virtual machine, libraries and associated files that everything else depends on.&#160; </p>
<p>There are many different options to download; skip over the ‘bundles’ and look at the second section.&#160; You only need to download the ‘<strong>Java SE Development Kit (JDK)</strong>’</p>
<ol>
<li>Download the Java SE Development Kit (JDK).&#160; The most recent version is fine (I installed JDK6u14).</li>
<ol>
<li>The direct link is <a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">here</a></li>
</ol>
<li>Once the download has completed, install the package.&#160; I took the default options.</li>
</ol>
<h2>Set-up Development IDE</h2>
<p><font face="Verdana">You have two choices when it comes down to development IDE: the blackberry IDE and eclipse.&#160; I understand that there are some advanced features that will be unavailable in eclipse that are available in the blackberry IDE.&#160; </font><font face="Verdana">However, eclipse is much more friendly and usable and so you have a classic trade-off.&#160; The good news is that the two are compatible (or so everyone claims).</font></p>
<p><font face="Verdana">Since I’m new to this whole endeavour and I favour having a modern IDE with built-in help and context sensitive menus, I chose to go with eclipse.&#160; The caveat with eclipse is that you must go with an OLDER version of eclipse.&#160; The newest version DOES NOT WORK with the blackberry software.</font></p>
<p><font face="Verdana">The supported version of eclipse is 3.4.1 (also known as Ganymede SR1).&#160; Thou shalt not use 3.3, 3.4.2 (Ganymede SR2) nor 3.5 Galileo, and Pulsar (mobile eclipse) is right out.&#160; Thou shalt use version 3.4.1 and thou shall only use version 3.4.1.</font></p>
<p><font face="Verdana">I only belabour this point as I learned this the hard way over the course of a long, frustrating day.&#160; Oh, as usual, there are many different versions and options: <strong>Eclipse Classic 3.4.1</strong></font></p>
<ol>
<li>Download Eclipse Classic 3.4.1 from <a href="http://www.eclipse.org/downloads/packages/release/ganymede/sr1" target="_blank">here</a>.</li>
<li>The download should be a zip file that you can extract to its final resting place.</li>
<li>I must say that eclipse is nice in that once you have unzipped it, it should just work.&#160; If it doesn’t then I think you are up the creek without a paddle.</li>
</ol>
<p><font face="Verdana">Once eclipse has been unzipped and you’ve started it, you are almost there.&#160; Just need to download the eclipse plugin that will allow you to develop for the Blackberry.</font></p>
<ol>
<li>Download the <strong>BlackBerry JDE Plug-in for Eclipse</strong>&#160;<a href="http://na.blackberry.com/eng/developers/javaappdev/javaeclipseplug.jsp" target="_blank">here</a>.&#160; You can install the ‘Full Installer’ or scroll down to ‘<a href="https://www.blackberry.com/Downloads/contactFormPreload.do;jsessionid=anKvhumELSs3PjF+C13Vaw**?code=DC727151E5D55DDE1E950767CF861CA5&amp;dl=62843DDF4F92F8DC2270124F09C5CA0A">Download the BlackBerry JDE Plug-in for Eclipse v1.0 with the BlackBerry® Java® Development Environment (BlackBerry JDE) v4.5 Component Pack</a>’</li>
<li>Once the download completes, run the executable and follow the instructions.</li>
</ol>
<p><font face="Verdana">Congratulations.&#160; You have now installed your environment for developing for version 4.5 of the Blackberry.</font></p>
<p><font face="Verdana">Next: Installing other versions of the JDE.</font></p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:35e1b60f-4a15-418b-a287-ce45fd8eb237" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/Blackberry" rel="tag">Blackberry</a>,<a href="http://technorati.com/tags/Eclipse" rel="tag">Eclipse</a>,<a href="http://technorati.com/tags/Blackberry+JDE" rel="tag">Blackberry JDE</a>,<a href="http://technorati.com/tags/Installation" rel="tag">Installation</a>,<a href="http://technorati.com/tags/Development" rel="tag">Development</a>,<a href="http://technorati.com/tags/Java" rel="tag">Java</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=29&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/07/24/setting-up-blackberry-development-environment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
		<item>
		<title>Blackberry Development</title>
		<link>http://yamspog.wordpress.com/2009/07/24/blackberry-development/</link>
		<comments>http://yamspog.wordpress.com/2009/07/24/blackberry-development/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 20:33:09 +0000</pubDate>
		<dc:creator>yamspog</dc:creator>
				<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://yamspog.wordpress.com/2009/07/24/blackberry-development/</guid>
		<description><![CDATA[&#160; Well, I have decided to venture into the world of mobile phones and mobile development.&#160; You are probably asking why I chose to pursue blackberry smartphones over the ever-popular and uber-sexy device known as the iPhone.&#160; So am I, perhaps I’ll talk a bit later about my rationale behind starting with Blackberry over the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=28&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Well, I have decided to venture into the world of mobile phones and mobile development.&#160; You are probably asking why I chose to pursue blackberry smartphones over the ever-popular and uber-sexy device known as the iPhone.&#160; So am I, perhaps I’ll talk a bit later about my rationale behind starting with Blackberry over the Apple system.</p>
<p>What I do know is that it has been a very steep learning curve to even get started.&#160; Before I venture into my rant, let me give a brief background on my technical skills. </p>
<p>I have been developing software for over 15 years and have a wide range of experience in all things windows and web related (at least as envisioned and presented by Microsoft).&#160; As part of this time, I have spent several years doing embedded development and a couple of J2E projects.&#160; I thought that I was a pretty smart guy and able to understand and figure things out fairly quickly.&#160; </p>
<p>As such, my initial thoughts were that I would be able to sit down, install the IDE and API and get coding in a matter of a day, maybe two at the most.&#160; Well, here I am at the end of the week and I have just managed to install the components necessary to develop for the Blackberry Storm. I have struggled with just about every step of the process.</p>
<p>It has been a very humbling experience and feel that I need to have a big piece of <a title="humble pie" href="http://www.acmehumblepie.com/" target="_blank">pie</a>.&#160; I have felt like the man banging his head against the wall just so that he can feel what it is like when he stops.&#160; The past couple days have developed so much character that I’m giving it away free with every comment.</p>
<p>So without any further adieu, I’d like to dedicate the subsequent posts to all those people out there that feel that installation and setup of development environments is a useless waste of time that keeps you from the real job of producing quality and timely software.</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c6531871-977e-4538-91bc-990cb52c7258" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/Blackberry" rel="tag">Blackberry</a>,<a href="http://technorati.com/tags/SmartPhone" rel="tag">SmartPhone</a>,<a href="http://technorati.com/tags/iPhone" rel="tag">iPhone</a>,<a href="http://technorati.com/tags/Eclipse" rel="tag">Eclipse</a>,<a href="http://technorati.com/tags/JDE" rel="tag">JDE</a>,<a href="http://technorati.com/tags/Software+Installation" rel="tag">Software Installation</a>,<a href="http://technorati.com/tags/Software+Rant" rel="tag">Software Rant</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yamspog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yamspog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yamspog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yamspog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yamspog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yamspog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yamspog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yamspog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yamspog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yamspog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yamspog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yamspog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yamspog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yamspog.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yamspog.wordpress.com&amp;blog=4318863&amp;post=28&amp;subd=yamspog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yamspog.wordpress.com/2009/07/24/blackberry-development/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc4c6e61b142744295befb2fbdf0bf72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yamspog</media:title>
		</media:content>
	</item>
	</channel>
</rss>
