<?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>creacog &#187; HTC Desire</title>
	<atom:link href="http://blog.creacog.co.uk/category/htc-desire/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creacog.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 16:43:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Which width? (AIR on devices)</title>
		<link>http://blog.creacog.co.uk/2011/07/19/which-width-air-on-devices/</link>
		<comments>http://blog.creacog.co.uk/2011/07/19/which-width-air-on-devices/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 14:45:42 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[HTC Desire]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=548</guid>
		<description><![CDATA[Comparing various ActionScript height and width properties upon initialisation on HTC Desire and the PlayBook simulator]]></description>
			<content:encoded><![CDATA[<p>Within the Flash APIs is there there are many similarly named properties which provide subtly different results based on their spec and the state of the application. Width and height are such properties.</p>
<p>Having just read of Mike Jones&#8217; recent article: <a title="My 10 Tips When Developing For Multiple Devices" href="http://blog.flashgen.com/2011/07/16/my-10-tips-when-developing-for-multiple-devices/" target="_blank">10 Tips When Developing For Multiple Devices</a>, and tip #1: <a title="Check screen dimension on initialization" href="http://blog.flashgen.com/2011/07/16/my-10-tips-when-developing-for-multiple-devices/#screen" target="_blank">Check screen dimension on initialisation</a>, it includes a couple of lines of code to get the landscape height and width of the device screen using a boolean expression to determine the longest dimension. For me this begs the question, why can&#8217;t I simply get the right values directly from the API? Especially if my app.xml properties state the app should only display landscape, full screen.</p>
<p>The properties examined here:</p>
<ul>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#width" target="as3api">stage.width</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#height" target="as3api">stage.height</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#stageWidth" target="as3api">stage.stageWidth</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#stageHeight" target="as3api">stage.stageHeight</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#fullScreenWidth" target="as3api">stage.fullScreenWidth</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#fullScreenWidth" target="as3api">stage.fullScreenHeight</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#orientation" target="as3api">stage.orientation</a></li>
</ul>
<p>Although accurately described in the reference, it isn&#8217;t necessarily easy to visualise the differences in behaviour for these properties from the documentation alone. So herewith, a simple <a title="Download HelloWidthHeight Flash builder project zip file" href="http://blog.creacog.co.uk/wp-content/uploads/2011/07/HelloWidthHeight.zip">HelloWidthHeight</a> app to trace out the values upon initialisation. Included in that app is a class implementing logic based on Mike&#8217;s as static methods. The results of debug sessions executed on my HTC Desire are detailed for comparison in the table below.</p>
<p>Key app.xml &lt;initialWindow&gt; properties used were:</p>
<ul>
<li>&lt;visible&gt;true&lt;/visible&gt;</li>
<li>&lt;aspectRatio&gt;landscape&lt;/aspectRatio&gt;</li>
<li>&lt;autoOrients&gt;false&lt;/autoOrients&gt;</li>
<li>&lt;fullScreen&gt;true&lt;/fullScreen&gt;</li>
</ul>
<table>
<tbody>
<tr>
<td></td>
<th>A</th>
<th>B</th>
<th>C</th>
<th>D</th>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.orientation</th>
<td>default</td>
<td>rotatedRight</td>
<td>rotatedRight</td>
<td>rotatedRight</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.width</th>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.height</th>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.stageWidth</th>
<td>480</td>
<td>800</td>
<td>800</td>
<td>800</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.stageHeight</th>
<td>800</td>
<td>480</td>
<td>480</td>
<td>480</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.fullScreenWidth</th>
<td>480</td>
<td>480</td>
<td>800</td>
<td>480</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.fullScreenHeight</th>
<td>800</td>
<td>800</td>
<td>480</td>
<td>800</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.landscapeScreenWidth</th>
<td>800</td>
<td>800</td>
<td>800</td>
<td>800</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.landscapeScreenHeight</th>
<td>480</td>
<td>480</td>
<td>480</td>
<td>480</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.portraitScreenWidth</th>
<td>480</td>
<td>480</td>
<td>480</td>
<td>480</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.portraitScreenHeight</th>
<td>800</td>
<td>800</td>
<td>800</td>
<td>800</td>
</tr>
</tbody>
</table>
<ol type="A">
<li>Screen inactive, phone held in any orientation</li>
<li>Screen active, phone lying flat on the desk</li>
<li>Screen active, phone held landscape, mic to the right (this is the intended orientation for the app)</li>
<li>Screen active, phone held portrait, mic to the bottom</li>
</ol>
<p>In conclusion, unless the application is only ever launched while the screen is active (though that would be the norm), the safe way of determining an oriented width and height is to use a boolean expression along with the fullScreenWidth and fullScreenHeight properties.</p>
<p><strong>UPDATE (20-July-2011)</strong>: The following table runs the same code in the BlackBerry PlayBook Simulator:</p>
<table>
<tbody>
<tr>
<td></td>
<th>A</th>
<th>B</th>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.orientation</th>
<td>default</td>
<td>default</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.width</th>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.height</th>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.stageWidth</th>
<td>1024</td>
<td>1024</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.stageHeight</th>
<td>600</td>
<td>600</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.fullScreenWidth</th>
<td>1024</td>
<td>1024</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.fullScreenHeight</th>
<td>600</td>
<td>600</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.landscapeScreenWidth</th>
<td>1024</td>
<td>1024</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.landscapeScreenHeight</th>
<td>600</td>
<td>600</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.portraitScreenWidth</th>
<td>600</td>
<td>600</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.portraitScreenHeight</th>
<td>1024</td>
<td>1024</td>
</tr>
</tbody>
</table>
<ol type="A">
<li>Simulator initially landscape</li>
<li>Simulator initially portrait</li>
</ol>
<p>Note: Behaviour is slightly different on the PlayBook simulator in that the orientation of the application is set before the initialisation code runs. Therefore unlike on the HTC Desire, fullScreenWidth and fullScreenHeight are correctly returned as the orientation of the application expects.</p>
<p>If anyone else cares to run the code, I&#8217;d be interested to hear how variable other devices are in their results, or if this is showing a bug when run on HTC Desire. Running AIR 2.7 here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2011/07/19/which-width-air-on-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>hello desire</title>
		<link>http://blog.creacog.co.uk/2010/06/07/hello-desire/</link>
		<comments>http://blog.creacog.co.uk/2010/06/07/hello-desire/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 11:53:19 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTC Desire]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=483</guid>
		<description><![CDATA[So, it&#8217;s good-bye to my trusty and slightly crumbling Nokia 3100 (recently a source of amusement and pity amongst my peers)&#8230; Hello HTC Desire&#8230; It could so easily have been hello iPhone. I do have iPod Touch which I enjoy using. But fundamentally as a Flash/ActionScript/Flex/AIR developer it made no sense at all to get [...]]]></description>
			<content:encoded><![CDATA[<p>So, it&#8217;s good-bye to my trusty and slightly crumbling Nokia 3100 (recently a source of amusement and pity amongst my peers)&#8230;</p>
<p><a href="http://blog.creacog.co.uk/wp-content/uploads/2010/06/Nokia3100.jpg"><img class="alignnone size-full wp-image-485" title="Nokia3100" src="http://blog.creacog.co.uk/wp-content/uploads/2010/06/Nokia3100.jpg" alt="Nokia 3100" width="200" height="218" /></a></p>
<p>Hello HTC Desire&#8230;</p>
<p><a href="http://blog.creacog.co.uk/wp-content/uploads/2010/06/HTCDesireUnbox.jpg"><img class="size-full wp-image-484 alignnone" title="HTCDesireUnbox" src="http://blog.creacog.co.uk/wp-content/uploads/2010/06/HTCDesireUnbox.jpg" alt="HTC Desire Unboxed" width="350" height="263" /></a></p>
<p>It could so easily have been hello iPhone. I do have iPod Touch which I enjoy using. But fundamentally as a Flash/ActionScript/Flex/AIR developer it made no sense at all to get a smartphone on which Flash has been nobbled.</p>
<p>(My own brief comment and observation on the iPhone/Flash debacle : It looks to me that both companies have incompatible business strategies with regard to delivery of RIAs on mobile devices. Discussion outside of the these strategies is in my opinion a deflection. It was disappointing to read <a title="Thoughts on Flash" href="http://www.apple.com/hotnews/thoughts-on-flash/" target="_blank">Steven Job&#8217;s thoughts on Flash</a>, which to my mind are ill-informed and based on half truths &#8211; out of character in those regards. It was also disappointing to watch <a title="Adobe CEO Shantanu Narayen sits down with Alan Murray and fires back at Steve Jobs in latest round of flash fight." href="http://online.wsj.com/video/adobe-and-apple-ceo-square-off/5C074A32-B7A3-47EC-9B53-E7A8A5A04E49.html" target="_blank">Adobe CEO Shantanu Narayen&#8217;s response in interview with the Wall Street Journal</a> where, in my humble opinion, he was far from convincing and by the end was sounding more like a parroting politician. Disappointing too that past quality and performance issues with Flash player gave Apple an easy ammunition to exaggerate and exploit. As an avid Apple Mac and Adobe Creative Suite user I hope the two companies can return to a professional relationship which doesn&#8217;t leave customers of both companies, like myself, out in the cold.)</p>
<p>So back to the HTC Desire, some first impressions&#8230;</p>
<p>The good</p>
<ol>
<li>It looks good, feels good</li>
<li>Nice bright responsive screen</li>
<li>Call quality is good</li>
<li>Better quality camera than I expected</li>
<li>The main reason for getting this device &#8211; Flash based apps are allowed!</li>
</ol>
<p>The not so good (compared with my iPod Touch experience)</p>
<ol>
<li>There are too many buttons. I find myself pressing the wrong one most of the time. Sometimes a button press is required. Sometimes not. The whole thing is less intuitive than the iPod Touch with it&#8217;s single button.</li>
<li>It seems all too easy to initiate a call at random while scrolling through the contact list.</li>
<li>Text selection/cursor positioning is awful</li>
<li>There is no out of the box easy way of syncing Address book, Calendar, tunes, photos etc with my Macs. Looks like I need to purchase <a title="Sync your Android phone wirelessly, via Wi-Fi or Bluetooth." href="http://www.markspace.com/products/android/missing-sync-android.html" target="_blank">Missing Sync</a>. That said, I did previously purchase Mobile Me to keep my Mac / Mac Book Pro and iPod Touch all in sync.</li>
<li>The Mail application is crap. I use a self-signed SSL certificate on my mail server, so I immediately hit the <a title="Sense Mail application does not accept self signed certificates?" href="http://community.htc.com/na/htc-forums/android/f/91/p/1777/6329.aspx" target="_blank">problem of a silent fail when trying to add connection details to the mail application</a>. The hack in the forum thread worked in fixing it, i.e. turning off my router&#8217;s WAN connection, while inputting the connection details. Also it doesn&#8217;t list the mail folders on the server &#8211; all I get is the inbox. Apple&#8217;s Mail app by comparison is a doddle and reflects the structure of my mail account.</li>
</ol>
<p>Fingers crossed for Android 2.2.</p>
<p>Anyway, looking forward to setting up some kind of tether to share the data connection with my MBP and more importantly getting something running in <a title="Adobe AIR for Android" href="http://labs.adobe.com/technologies/air2/android/" target="_blank">AIR for Android</a> on there.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2010/06/07/hello-desire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

