<?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>amazing development &#187; android</title>
	<atom:link href="http://amazing-development.com/archives/category/all/work/google/android/feed/" rel="self" type="application/rss+xml" />
	<link>http://amazing-development.com</link>
	<description>ruby, java and the rest</description>
	<lastBuildDate>Sun, 21 Aug 2011 20:46:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Android scripting environment supports JRuby</title>
		<link>http://amazing-development.com/archives/2009/08/04/android-scripting-environment-supports-jruby/</link>
		<comments>http://amazing-development.com/archives/2009/08/04/android-scripting-environment-supports-jruby/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 06:21:19 +0000</pubDate>
		<dc:creator>Frank Spychalski</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://amazing-development.com/?p=396</guid>
		<description><![CDATA[Quite some time has passed since the last time I wrote something on this blog, mostly because I did little non-work related worth mentioning. But last week I helped Damon to finally support JRuby on his Android Scripting Environment (ASE). Downloaded JRuby sources (jruby&#45;1.2.0RC1) from http&#58;//www.jruby.org/download. Patched the build.xml to not include doc/index.html from dynalang.jar [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://static.amazing-development.com/blog_images/09/ASE.jpg"/><a href="http://www.flickr.com/photos/dino_olivieri/391541320/"><img class="alignright" src="http://static.amazing-development.com/blog_images/09/robot_red_planet.jpg"/></a>Quite some time has passed since the last time I wrote something on this blog, mostly because I did little non-work related worth mentioning.</p>
<p />
But last week I helped <a href="http://damonkohler.com/">Damon</a> to finally support JRuby on his <a href="http://code.google.com/p/android-scripting/">Android Scripting Environment (ASE)</a>. </p>
<ul>
<li>Downloaded JRuby sources (jruby&#45;1.2.0RC1) from <a href="http://www.jruby.org/download">http&#58;//www.jruby.org/download</a>.</li>
<li>Patched the <tt>build.xml</tt> to not include <tt>doc/index.html</tt> from <tt>dynalang.jar</tt> otherwise dx will complain about an HTML page in the ruby&#45;complete.jar.<br />
<br clear="all"/></p>
<pre>$ diff &#45;r jruby&#45;1.2.0RC1 jruby&#45;1.2.0RC1.patched/
Only in jruby&#45;1.2.0RC1.patched/&#58; build
diff &#45;r jruby&#45;1.2.0RC1/build.xml jruby&#45;1.2.0RC1.patched/build.xml
42c42
&lt;
&#45;&#45;&#45;
&gt;
238c238,240
&lt;         &lt;zipfileset src=&quot;${build.lib.dir}/dynalang&#45;0.3.jar&quot;/&gt;
&#45;&#45;&#45;
&gt;         &lt;zipfileset src=&quot;${build.lib.dir}/dynalang&#45;0.3.jar&quot;&gt;
&gt;           &lt;exclude name=&quot;**/doc/index.html&quot;/&gt;
&gt;         &lt;/zipfileset&gt;
268c270,272
&lt;         &lt;zipfileset src=&quot;${build.lib.dir}/dynalang&#45;0.3.jar&quot;/&gt;
&#45;&#45;&#45;
&gt;         &lt;zipfileset src=&quot;${build.lib.dir}/dynalang&#45;0.3.jar&quot;&gt;
&gt;           &lt;exclude name=&quot;**/doc/index.html&quot;/&gt;
&gt;         &lt;/zipfileset&gt;
387c391,393
&lt;         &lt;zipfileset src=&quot;${build.lib.dir}/dynalang&#45;0.3.jar&quot;/&gt;
&#45;&#45;&#45;
&gt;         &lt;zipfileset src=&quot;${build.lib.dir}/dynalang&#45;0.3.jar&quot;&gt;
&gt;           &lt;exclude name=&quot;**/doc/index.html&quot;/&gt;
&gt;         &lt;/zipfileset&gt;</pre>
</li>
<li>Downloaded the JSON sources from <a href="http://rubyforge.org/frs/?group_id=953 and put them in lib/ruby/1.8/json/">http&#58;//rubyforge.org/frs/?group_id=953 and put them in <tt>lib/ruby/1.8/json/</tt></a></li>
<li>Copied <a href="http://code.google.com/p/android-scripting/source/browse/trunk/jruby/ase/android.rb">android.rb</a> to <tt>lib/ruby/1.8/</tt>.</li>
<li>Built jar&#45;complete (<tt>ant jar-complete</tt>) and added <tt>jruby&#45;complete.jar</tt> to eclipse project.</li>
<li>Connected the bits and pieces in <a href="http://code.google.com/p/android-scripting/source/browse/#svn/trunk/android/AndroidScriptingEnvironment/src/com/google/ase/interpreter/jruby"><tt>com.google.ase.interpreter.jruby</tt></a></li>
</ul>
<ul>
<p>But beware! The new ASE apk is HUGE (4.6M) and JRuby is fairly slow. But it works <img src='http://amazing-development.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </ul>
<p><img src="http://static.amazing-development.com/blog_images/09/ase1.jpg"/><br />
<img src="http://static.amazing-development.com/blog_images/09/ase2.jpg"/></p>
]]></content:encoded>
			<wfw:commentRss>http://amazing-development.com/archives/2009/08/04/android-scripting-environment-supports-jruby/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>JRuby on Android</title>
		<link>http://amazing-development.com/archives/2007/12/14/jruby-on-android/</link>
		<comments>http://amazing-development.com/archives/2007/12/14/jruby-on-android/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 03:43:27 +0000</pubDate>
		<dc:creator>Frank Spychalski</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://amazing-development.com/archives/2007/12/14/jruby-on-android/</guid>
		<description><![CDATA[Today I tried to run JRuby on Android. I failed. This article is more like a lab report so expect more boring details&#8230; At first I tried the easiest way and added the JRuby jar to my android project. This would have been way to easy and as I expected it did not work. Then [...]]]></description>
			<content:encoded><![CDATA[<p><img class="framedr" src="http://static.amazing-development.com/blog_images/red_robot_1.jpg" alt="a red robot"/>Today I tried to run <a href="http://jruby.codehaus.org/">JRuby</a> on <a href="http://code.google.com/android/">Android</a>. I failed. This article is more like a lab report so expect more boring details&#8230;<span id="more-303"></span></p>
<p>At first I tried the easiest way and added the JRuby jar to my android project. This would have been way to easy and as I expected it did not work. </p>
<p>Then I copied all the JRuby sources into my android project and eclipse gave me more than 100 errors. I had to remove org.jruby.javasupport.bsf.BSFExample and the whole org.jruby.demo package because of dependencies to awt and swing. Now only a single error message was left with a dependency on some class I can&#8217;t remember in java.beans. So I downloaded the Java sources and copied the class into my project which gave me a few new dependencies. So I copied the whole java.beans package into the project and removed all dependencies to awt and swing from the code. Now I needed to add only 2 more classed com.sun.beans.ObjectHandler and sun.awt.EventListenerAggregate for eclipse to stop complaining. </p>
<p><img class="framedl" src="http://static.amazing-development.com/blog_images/red_robot_2.jpg" alt="a red robot"/>At this point I encountered my first bug in Android: dx(the compiler for <a href="http://en.wikipedia.org/wiki/Dalvik_virtual_machine">Dalvik</a>) complained about the bsf.jar file which came with JRuby[1]. Fortunately I could work on with the 2.4.0 version of bsf. </p>
<p>At this point eclipse stopped complaining and dx was able to create Dalvik byte code for my test application and package the result.</p>
<p>But when I started the result on the emulator all I got was an exception&#8230; This is where I will stop for today and continue whenever I find some time. If someone out there has already successfully used JRuby on Android please leave me a comment on how you managed to do it.</p>
<p>[1] the bug was fixed less than 3h after I reported it. Kudos to the Dalvik team!</p>
]]></content:encoded>
			<wfw:commentRss>http://amazing-development.com/archives/2007/12/14/jruby-on-android/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>First glance at Android</title>
		<link>http://amazing-development.com/archives/2007/12/07/first-glance-at-android/</link>
		<comments>http://amazing-development.com/archives/2007/12/07/first-glance-at-android/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 19:07:28 +0000</pubDate>
		<dc:creator>Frank Spychalski</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://amazing-development.com/archives/2007/12/07/first-glance-at-android/</guid>
		<description><![CDATA[As you can see I&#8217;m toying around with the android SDK. I guess this will be my first 20 percent project here at Google. So far I&#8217;m impressed with the state of the SDK. There is a ton of documentation and up to now everything worked at once. I have a couple of ideas I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://static.amazing-development.com/blog_images/google/android-ad.thumb.png"/></p>
<p>As you can see I&#8217;m toying around with the <a href="http://code.google.com/android/">android</a> SDK. I guess this will be my first 20 percent project here at Google.</p>
<p>So far I&#8217;m impressed with the state of the SDK. There is a ton of documentation and up to now everything worked at once.</p>
<p>I have a couple of ideas I would like to try on android but unfortunately all of them involve bluetooth and there is no bluetooth support for the emulator (yet?).</p>
<p>If you have a great idea you would like to see as an app for your next cellphone, just leave me a comment or implement it on your own <img src='http://amazing-development.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://amazing-development.com/archives/2007/12/07/first-glance-at-android/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

