<?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>Rambling Rainbow</title>
	<atom:link href="http://leonardoce.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://leonardoce.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Sat, 10 Dec 2011 09:30:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='leonardoce.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rambling Rainbow</title>
		<link>http://leonardoce.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://leonardoce.wordpress.com/osd.xml" title="Rambling Rainbow" />
	<atom:link rel='hub' href='http://leonardoce.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Android programming: ArrayIndexOutOfBoundsException in ViewRoot.handleMessage</title>
		<link>http://leonardoce.wordpress.com/2011/12/10/android-programming-arrayindexoutofboundsexception-in-viewroot-handlemessage/</link>
		<comments>http://leonardoce.wordpress.com/2011/12/10/android-programming-arrayindexoutofboundsexception-in-viewroot-handlemessage/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 09:28:00 +0000</pubDate>
		<dc:creator>leonardoce</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://leonardoce.wordpress.com/?p=27</guid>
		<description><![CDATA[I had fought with this exception for a week: Thread [&#60;1&#62; main] (Suspended (exception ArrayIndexOutOfBoundsException)) ViewRoot.handleMessage(Message) line: 1895 ViewRoot(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 130 ActivityThread.main(String[]) line: 3695 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, &#8230; <a href="http://leonardoce.wordpress.com/2011/12/10/android-programming-arrayindexoutofboundsexception-in-viewroot-handlemessage/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leonardoce.wordpress.com&amp;blog=30167237&amp;post=27&amp;subd=leonardoce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had fought with this exception for a week:</p>
<pre class="example">Thread [&lt;1&gt; main] (Suspended (exception ArrayIndexOutOfBoundsException))
ViewRoot.handleMessage(Message) line: 1895
ViewRoot(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 130
ActivityThread.main(String[]) line: 3695
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 507
ZygoteInit$MethodAndArgsCaller.run() line: 842
ZygoteInit.main(String[]) line: 600
NativeStart.main(String[]) line: not available [native method]</pre>
<p>When I saw the exception backtrace I tought that I was doing something wrong with my View hierarchy that was damaging the state of the ViewRoot instance.</p>
<p>Then I realized that I was actually accessing an array with an invalid index from an event handler that is actually called from the Android class <code>android.view.core.ViewRoot</code>!</p>
<p>Then I understood what was happening. I was using an array with an invalid index in a method that was called by the onTouch event handler!</p>
<p>So, the exception backtrace should be something like this:</p>
<pre class="example">Thread [&lt;1&gt; main] (Suspended (exception ArrayIndexOutOfBoundsException))
MyClassHere.myMethodHere() line: 123
...
...
ViewRoot.handleMessage(Message) line: 1895
ViewRoot(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 130
ActivityThread.main(String[]) line: 3695
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 507
ZygoteInit$MethodAndArgsCaller.run() line: 842
ZygoteInit.main(String[]) line: 600
NativeStart.main(String[]) line: not available [native method]</pre>
<p>Why isn&#8217;t my class appearing in the backtrace? I don&#8217;t know!</p>
<p>So, remember that, when you have an Exception throwing from <code>ViewRoot.handleMessage</code> probably you are raising that exception from an event handler that is called from that method!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leonardoce.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leonardoce.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leonardoce.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leonardoce.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leonardoce.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leonardoce.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leonardoce.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leonardoce.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leonardoce.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leonardoce.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leonardoce.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leonardoce.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leonardoce.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leonardoce.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leonardoce.wordpress.com&amp;blog=30167237&amp;post=27&amp;subd=leonardoce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://leonardoce.wordpress.com/2011/12/10/android-programming-arrayindexoutofboundsexception-in-viewroot-handlemessage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b32a6c79283c40a661ff11d84beb178?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">leonardoce</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash Builder and JBoss Tools 3.3</title>
		<link>http://leonardoce.wordpress.com/2011/12/07/flash-builder-and-jboss-tools-3-3/</link>
		<comments>http://leonardoce.wordpress.com/2011/12/07/flash-builder-and-jboss-tools-3-3/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 22:05:00 +0000</pubDate>
		<dc:creator>leonardoce</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[jboss]]></category>

		<guid isPermaLink="false">http://leonardoce.wordpress.com/?p=16</guid>
		<description><![CDATA[Let say you have Flash Builder and you would like to deploy your application on JBoss AS 7. Maybe you also want to control your JBoss from the IDE. First of all you must have Flash Builder 4.6, because JBoss &#8230; <a href="http://leonardoce.wordpress.com/2011/12/07/flash-builder-and-jboss-tools-3-3/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leonardoce.wordpress.com&amp;blog=30167237&amp;post=16&amp;subd=leonardoce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let say you have Flash Builder and you would like to deploy your application on JBoss AS 7. Maybe you also want to control your JBoss from the IDE.</p>
<p>First of all you must have Flash Builder 4.6, because JBoss Tools 3.3 work only with Eclipse Indigo and only the latest Flash Builder is based on Indigo.</p>
<p>If you have Flash Builder 4.5 you must upgrade to the new release and you must uninstall the old one and install the new release.</p>
<p>When you are uninstalling Flash Builder 4.5 you <strong>want</strong> to uncheck the &#8220;Disable&#8221; option on the first screen, so that the uninstalling process do not delete your previous Flash Builder license.</p>
<p><img src="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_disattiva.png?w=640" alt="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_disattiva.png?w=640" /></p>
<p>Now you can install the new Flash Builder release, it will migrate your previous settings.</p>
<p>When you have installed the new Flash Builder you must install the Eclipse J2EE tools. To install the J2EE tools you must add the Indigo update URL to your Flash Builder installation.</p>
<p>First of all select <em>Install New Software</em> from the <em>Help</em> menu in your Flash Builder installation and add to the update sites the Indigo Url, which is <a href="http://download.eclipse.org/releases/indigo/">http://download.eclipse.org/releases/indigo/</a>. This process is explained in the following screenshots:</p>
<p><img src="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_1.png?w=640" alt="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_1.png?w=640" /></p>
<p><img src="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_2.png?w=640" alt="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_2.png?w=640" /></p>
<p><img src="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_3.png?w=640" alt="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_3.png?w=640" /></p>
<p>Now you can choose the &#8220;Indigo&#8221; site to get the package list populated. You must install <em>Eclipse Java EE Developer Tools</em> and <em>Eclipse Web Developer Tools</em>.</p>
<p>Then you can follow the same procedure using the JBoss Tools update site, <a href="http://download.jboss.org/jbosstools/updates/development/indigo/">http://download.jboss.org/jbosstools/updates/development/indigo/</a>. When you are done you <strong>must</strong> disable the update sites you have added because if you install any updates from the Indigo update site Flash Builder will stop working. Updating base Eclipse in a Flash Builder installation is not supported. See <a href="http://bugs.adobe.com/jira/browse/FB-30479">bug FB-30479</a> and <a href="http://bugs.adobe.com/jira/browse/FB-31761">bug FB-31761</a>.</p>
<p>To disable the update sites you can open the &#8220;Available Software Sites&#8221; preferences and, in the next window, remove the repositories you just added.</p>
<p><img src="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_4.png?w=640" alt="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_4.png?w=640" /></p>
<p>Please keep in mind that you can&#8217;t update the base Eclipse of a Flash Builder installation!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leonardoce.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leonardoce.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leonardoce.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leonardoce.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leonardoce.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leonardoce.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leonardoce.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leonardoce.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leonardoce.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leonardoce.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leonardoce.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leonardoce.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leonardoce.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leonardoce.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leonardoce.wordpress.com&amp;blog=30167237&amp;post=16&amp;subd=leonardoce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://leonardoce.wordpress.com/2011/12/07/flash-builder-and-jboss-tools-3-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b32a6c79283c40a661ff11d84beb178?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">leonardoce</media:title>
		</media:content>

		<media:content url="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_disattiva.png" medium="image">
			<media:title type="html">http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_disattiva.png</media:title>
		</media:content>

		<media:content url="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_1.png" medium="image">
			<media:title type="html">http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_1.png</media:title>
		</media:content>

		<media:content url="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_2.png" medium="image">
			<media:title type="html">http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_2.png</media:title>
		</media:content>

		<media:content url="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_3.png" medium="image">
			<media:title type="html">http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_3.png</media:title>
		</media:content>

		<media:content url="http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_4.png" medium="image">
			<media:title type="html">http://leonardoce.files.wordpress.com/2011/12/wpid-flash_builder_jboss_4.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Air 2.7 and Menu Softkey on Android Honeycomb</title>
		<link>http://leonardoce.wordpress.com/2011/12/05/air-2-7-and-menu-softkey-on-android-honeycomb/</link>
		<comments>http://leonardoce.wordpress.com/2011/12/05/air-2-7-and-menu-softkey-on-android-honeycomb/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 20:24:00 +0000</pubDate>
		<dc:creator>leonardoce</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://leonardoce.wordpress.com/?p=5</guid>
		<description><![CDATA[If you are developing using Air 2.6 you are probably using the menu softkey to make users navigating the application. When you will upgrade to Flash Builder 4.6 the menu key will disappear! In effect, as the bug report 2936827 &#8230; <a href="http://leonardoce.wordpress.com/2011/12/05/air-2-7-and-menu-softkey-on-android-honeycomb/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leonardoce.wordpress.com&amp;blog=30167237&amp;post=5&amp;subd=leonardoce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are developing using Air 2.6 you are probably using the menu softkey to make users navigating the application.</p>
<p><img src="http://leonardoce.files.wordpress.com/2011/12/wpid-menu_softkey_on_android.png?w=640" alt="http://leonardoce.files.wordpress.com/2011/12/wpid-menu_softkey_on_android.png?w=640" /></p>
<p>When you will upgrade to Flash Builder 4.6 the menu key will disappear!</p>
<p>In effect, as the bug report <a href="https://bugbase.adobe.com/index.cfm?event=bug&amp;id=2936827">2936827</a> reported against Air 2.7 explains, Air 2.7 is targeting, by default, Android SDK 11. This makes your menu key disappearing.</p>
<p>I think you, and our, must try to not use the menu softkey but, in the mean time, you can re-enable the menu soft key setting up the <code>targetSdkVersion</code> in your AIR application descriptor:</p>
<pre class="example">&lt;android&gt;
        &lt;manifestAdditions&gt;&lt;![CDATA[
                        &lt;manifest android:installLocation="auto"&gt;
                                &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10"/&gt;
                                [....]
                        &lt;/manifest&gt;
                        [....]
                ]]&gt;
        &lt;/manifestAdditions&gt;
&lt;/android&gt;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/leonardoce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/leonardoce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/leonardoce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/leonardoce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/leonardoce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/leonardoce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/leonardoce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/leonardoce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/leonardoce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/leonardoce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/leonardoce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/leonardoce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/leonardoce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/leonardoce.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=leonardoce.wordpress.com&amp;blog=30167237&amp;post=5&amp;subd=leonardoce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://leonardoce.wordpress.com/2011/12/05/air-2-7-and-menu-softkey-on-android-honeycomb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b32a6c79283c40a661ff11d84beb178?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">leonardoce</media:title>
		</media:content>

		<media:content url="http://leonardoce.files.wordpress.com/2011/12/wpid-menu_softkey_on_android.png" medium="image">
			<media:title type="html">http://leonardoce.files.wordpress.com/2011/12/wpid-menu_softkey_on_android.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>
