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

<channel>
	<title>A world in dk(decay/denmark) &#187; dialer</title>
	<atom:link href="http://rotand.dk/blog/tag/dialer/feed/" rel="self" type="application/rss+xml" />
	<link>http://rotand.dk/blog</link>
	<description>Just another pointless weblog</description>
	<lastBuildDate>Sat, 27 Jun 2009 19:17:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DTMF dialer got new features</title>
		<link>http://rotand.dk/blog/2009/06/27/dtmf-dialer-got-new-features/</link>
		<comments>http://rotand.dk/blog/2009/06/27/dtmf-dialer-got-new-features/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 17:14:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cldc]]></category>
		<category><![CDATA[dialer]]></category>
		<category><![CDATA[dtmf]]></category>
		<category><![CDATA[J2ME]]></category>
		<category><![CDATA[jar file]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://rotand.dk/blog/?p=198</guid>
		<description><![CDATA[I got a comment from a reader who used my DTMF dialer but missed a feature.
It was the ability to change what prefix to remove. As i live in Denmark, whenever i make a call on a land-line there is no reason to dial +45, which is the danish country code. Actually the plus is [...]]]></description>
			<content:encoded><![CDATA[<p>I got a <a href="http://rotand.dk/blog/about-2/comment-page-1/#comment-1385">comment from a reader</a> who used my <a href="http://rotand.dk/blog/2008/03/20/dtmf-dialer/">DTMF dialer</a> but missed a feature.</p>
<p>It was the ability to change what prefix to remove. As i live in Denmark, whenever i make a call on a land-line there is no reason to dial +45, which is the danish country code. Actually the plus is converted into 00 as well.</p>
<p>But Eli needed the prefix 08 to be removed.</p>
<p>And i guess that there are a lot of other prefixes that could be removed and + shouldn&#8217;t always be converted to 00. So I decided to implement this feature.</p>
<h2>Whats new</h2>
<ul>
<li>It now remembers your settings</li>
<li>It possible to choose a prefix to remove</li>
<li>its possible to decide what + should be replaced by.</li>
<li>I slapped a GPL V3 license on it</li>
</ul>
<h3>The files</h3>
<p><a href="http://rotand.dk/blog/wp-content/dtmfdialer.jad">dtmfdialer jad file</a></p>
<p><a href="http://rotand.dk/blog/wp-content/dtmfdialer.jar">dtmfdialer jar file</a></p>
<p><a href="http://rotand.dk/blog/wp-content/dtmfdialer.zip">dtmfdialer source code</a></p>
<p>Unfortunately it wasn&#8217;t just a 5 min hack. There were two major challenges.</p>
<h3>Persistence</h3>
<p>In J2me access to the filesystem is restricted and requires all sorts of security permissions, but every application has access to a &#8220;RecordStore&#8221;. The RecordStore (RMS) only allows byte[] to be stored, so you have to marshall/unmarshall every piece of data at quite a low level. I haven&#8217;t persisted any data in the first version, as this is indeed tedious to work with. But not having persistence for a prefix remover functionality wouldn&#8217;t be of any use. You would have to enter the same data every time you used the application and then it would be faster to just edit the number to call.</p>
<h3>Netbeans mobility pack</h3>
<p>It was supposed to be so eays.</p>
<p>But the floweditor somehow did mess up and didn&#8217;t generate the code, so the flow diagram and the sourcecode were out of sync, and i didn&#8217;t see any way to &#8220;resync&#8221;/&#8221;regenerate code/diagram&#8221;. This was cause for a lot of frustrations.</p>
<p>Originally i made it with netbeans so compiling and editing the generated code were best done in netbeans. But if i ever were to mess with it again i would seriosly consider &#8220;porting&#8221; it to J2me Polish or just &#8220;vanillia&#8221; j2me. As i really really don&#8217;t like the netbeans editor.</p>
<p>update : Eli found a bug in the prefix substitution, i fixed and uploaded the new version (June 27, 2009, 21:17)</p>
]]></content:encoded>
			<wfw:commentRss>http://rotand.dk/blog/2009/06/27/dtmf-dialer-got-new-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
