<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CE8HR3o5eyp7ImA9WhRaFEw.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754</id><updated>2012-02-16T17:20:36.423Z</updated><title>Robotic Musings</title><subtitle type="html">Logging my experiences on working with the Android platform and its most amazing ecosystem, with a bit of my thoughts regarding the mobile industry thrown in.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.akshaydashrath.com/" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/RoboticMusings" /><feedburner:info uri="roboticmusings" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;A0ACRXk8cCp7ImA9WhdUE04.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-6589456958111674592</id><published>2011-09-30T00:42:00.000+01:00</published><updated>2011-09-30T00:42:44.778+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-30T00:42:44.778+01:00</app:edited><title>The Kindle Fire: "Light My Fire"</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
After years of no-blogging two posts in a night, I'm on a roll :D.&lt;br /&gt;
&lt;br /&gt;
I'd have liked the Kindle to "C'mon baby, Light My Fire", but unfortunately it didn't. But then again I prefer a plain old book to an eBook reader, I'm not a big fan of tablets either and prefer my phone hands down over a tablet, and lastly I like my devices to be state of the art. So in short I'm &lt;b&gt;not &lt;/b&gt;part of&amp;nbsp;the target demographic of the Amazon Kindle Fire. However the Kindle Fire is extremely interesting for several reasons:&lt;br /&gt;
&lt;br /&gt;
-This is going to be the first "mass market" non Google supported Android device which is taking advantage of the open nature of the OS, i.e. this is something that could morph into a whole new branch of Android which is amazon supported. This may lead to "increased fragmentation", but that's not how as developers we should look at it. I see it as a whole new target demographic to develop apps for, and its far easier to port an app to an OS whose underlying system is similar to the one I develop for on a daily basis than one that is radically different. i.e. Even if amazon take their fork of android in a different direction it would be far easier for me to port my apps to their platform if required than to port say to the iPhone or Windows Phone.&lt;br /&gt;
&lt;br /&gt;
-The Fire is going to be an&amp;nbsp;exercise&amp;nbsp;to&amp;nbsp;prove&amp;nbsp;that the Average Joe prefers content over specs on paper. Yes, the Fire has a dual core processor, but then again its only got 8GB storage, runs on a base of android 2.3 which as we all know is NOT a tablet OS, and ice cream sandwich is just 10 days away, but still I'm going to bet on the Fire outselling any Honeycomb/ICS tablet once it releases and its not only because of the price, I'm sure if/when the Fire hits UK shores its going to be far more expensive than it is in the US, which would make the Archos G9 8in at 200£ a better buy as its more "fully featured" for the tech enthusiast or the Xoom at 300£.&lt;br /&gt;
&lt;br /&gt;
Thats my two pence, if anyone's got comments/opposing points to make/add please feel free to do so as Amazon entering the "tablet/eReader" hybrid market is rather interesting and is worthy of a debate :D.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-6589456958111674592?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/M3_TW6zwz797RaaNsz2zPDT8Eec/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M3_TW6zwz797RaaNsz2zPDT8Eec/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/M3_TW6zwz797RaaNsz2zPDT8Eec/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M3_TW6zwz797RaaNsz2zPDT8Eec/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/YGhHo1MaZrg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/6589456958111674592/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2011/09/kindle-fire-light-my-fire.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/6589456958111674592?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/6589456958111674592?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/YGhHo1MaZrg/kindle-fire-light-my-fire.html" title="The Kindle Fire: &quot;Light My Fire&quot;" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2011/09/kindle-fire-light-my-fire.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkEARno6fSp7ImA9WhdUE04.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-6848701864285354189</id><published>2011-09-30T00:24:00.000+01:00</published><updated>2011-09-30T00:24:07.415+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-30T00:24:07.415+01:00</app:edited><title>CursorLoader and the CursorAdapter: A bit of a rant</title><content type="html">&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Of late I've begun using fragments with the&amp;nbsp;compatibility&amp;nbsp;library in my Android apps. Personally it has been a rather frustrating but rewarding experience.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;The rewarding bit was the substantial gain in responsiveness when moving from a "&lt;i&gt;managedQuery&lt;/i&gt;" approach to the "&lt;i&gt;LoaderManager&lt;/i&gt;" approach in querying for a cursor. LoaderManager and Cursor Loaders as one knows basically queries for the cursor in &amp;nbsp;a background thread.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Coming to the frustrating bit, I wasn't aware (my fault entirely for not reading the documentation thoroughly) that once you use the LoaderManager/CursorLoader it is necessary to use the CursorAdapter included in the compatibility library. Therefore for about 2 days I never really say much of a gain in responsiveness and I actually managed to make the app a lot more unstable, until I figured out that it was a requirement to use the CursorAdapter from the&amp;nbsp;compatibility&amp;nbsp;library. &lt;i&gt;Note to self: Make sure you read the documentation thoroughly. &lt;/i&gt;In this case &lt;b&gt;USE THE COMPATIBILITY LIBRARY CURSOR ADAPTER &lt;/b&gt;in particular the cursoradapter must be instantiated using this constructor "&lt;span class="Apple-style-span" style="background-color: #f6f6f6; white-space: nowrap;"&gt;&lt;b&gt;&lt;span class="sympad" style="margin-right: 2px;"&gt;&lt;a href="http://developer.android.com/reference/android/widget/CursorAdapter.html#CursorAdapter(android.content.Context, android.database.Cursor, int)" style="text-decoration: none;"&gt;CursorAdapter&lt;/a&gt;&lt;/span&gt;(&lt;a href="http://developer.android.com/reference/android/content/Context.html" style="text-decoration: none;"&gt;Context&lt;/a&gt;&amp;nbsp;context,&amp;nbsp;&lt;a href="http://developer.android.com/reference/android/database/Cursor.html" style="text-decoration: none;"&gt;Cursor&lt;/a&gt;&amp;nbsp;c, int flags)" &lt;/b&gt;in order to make full use of the&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="background-color: #f6f6f6; white-space: nowrap;"&gt;&amp;nbsp;potential of the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f6f6f6; font-family: 'Trebuchet MS', sans-serif; white-space: nowrap;"&gt;background querying for the cursor. More info:&amp;nbsp;&lt;/span&gt;&lt;a href="http://developer.android.com/reference/android/widget/CursorAdapter.html"&gt;http://developer.android.com/reference/android/widget/CursorAdapter.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-6848701864285354189?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QpyF47JYtljWmS06EICAMOOsbWc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QpyF47JYtljWmS06EICAMOOsbWc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QpyF47JYtljWmS06EICAMOOsbWc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QpyF47JYtljWmS06EICAMOOsbWc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/Bc8EYWQtQKw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/6848701864285354189/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2011/09/cursorloader-and-cursoradapter-bit-of.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/6848701864285354189?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/6848701864285354189?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/Bc8EYWQtQKw/cursorloader-and-cursoradapter-bit-of.html" title="CursorLoader and the CursorAdapter: A bit of a rant" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2011/09/cursorloader-and-cursoradapter-bit-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C04DSHkycSp7ImA9WxNaGE0.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-3429481732312496090</id><published>2009-12-03T00:59:00.001Z</published><updated>2009-12-03T00:59:39.799Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-03T00:59:39.799Z</app:edited><title>Droidcon London pics</title><content type="html">&lt;p&gt;can be found here &lt;a href="http://www.flickr.com/photos/skillsmatter/sets/72157622797137111/"&gt;http://www.flickr.com/photos/skillsmatter/sets/72157622797137111/&lt;/a&gt;, theres a hilarious picture of me with Alex. Alex supposedly consoling me after my talk :D.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-3429481732312496090?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MQ9kC2Yj6xky-F3y74LcfxcjDGw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MQ9kC2Yj6xky-F3y74LcfxcjDGw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MQ9kC2Yj6xky-F3y74LcfxcjDGw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MQ9kC2Yj6xky-F3y74LcfxcjDGw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/DOk3lWiOD0Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/3429481732312496090/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2009/12/droidcon-london-pics.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/3429481732312496090?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/3429481732312496090?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/DOk3lWiOD0Q/droidcon-london-pics.html" title="Droidcon London pics" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2009/12/droidcon-london-pics.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQARX8_eip7ImA9WxNaF0s.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-7604205641930340829</id><published>2009-12-02T14:15:00.001Z</published><updated>2009-12-02T14:15:44.142Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-02T14:15:44.142Z</app:edited><title>Droidcon London, Scala on Android</title><content type="html">&lt;p&gt;My slides for the Droidcon London talk can be found at &lt;a href="http://www.slideshare.net/akshaydashrath/scala-on-android"&gt;http://www.slideshare.net/akshaydashrath/scala-on-android&lt;/a&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-7604205641930340829?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hjcCctk4V2hwskziUciKWqlWxcU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hjcCctk4V2hwskziUciKWqlWxcU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hjcCctk4V2hwskziUciKWqlWxcU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hjcCctk4V2hwskziUciKWqlWxcU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/Elh4vUm5ZO0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/7604205641930340829/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2009/12/droidcon-london-scala-on-android.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/7604205641930340829?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/7604205641930340829?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/Elh4vUm5ZO0/droidcon-london-scala-on-android.html" title="Droidcon London, Scala on Android" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2009/12/droidcon-london-scala-on-android.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4GRXk5eSp7ImA9WxNUFUQ.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-7198079057893054624</id><published>2009-11-07T12:28:00.001Z</published><updated>2009-11-07T12:28:44.721Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-07T12:28:44.721Z</app:edited><title>My first talk, Android: A brief introduction to the open OS</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I just finished my first ever public talk at the GTUG event in Bangalore. Initially it was scary but once I got underway it was rather fun, I really quite enjoyed myself, until the damn laptop hung up and wouldn't open or run eclipse or the android emulator. I just figured out why though, had the laptop on Maximum battery and the processor was running at half its usual cycles. I think overall the talk was well received though, which was a relief, could have put forward a lot more information as I first intended to do, however when up there it was hard to think straight. Whatever said and done I quite enjoyed myself, a big thank you to GTUG(&lt;a href="http://bangalore-gtug.org/"&gt;http://bangalore-gtug.org/&lt;/a&gt;) for giving me the opportunity to talk at their event and Novoda(&lt;a href="http://www.novoda.com"&gt;www.novoda.com&lt;/a&gt;) for helping out with the presentation. Now that the fun is over with back to work on Scala and working on my droidcon presentation :D.&lt;/p&gt;  &lt;p&gt;For those who want to download the slides from today’s talk, they’re available at: http://docs.google.com/present/edit?id=0AYUIKIiIblQrZGN6eHJxYmZfMzJkZDY5NzdkNQ&amp;amp;hl=en&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-7198079057893054624?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cGQYD293QFymt1v9UrPI8-rtdXc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cGQYD293QFymt1v9UrPI8-rtdXc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cGQYD293QFymt1v9UrPI8-rtdXc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cGQYD293QFymt1v9UrPI8-rtdXc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/U8F3RGRI5Ro" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/7198079057893054624/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2009/11/my-first-talk-android-brief.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/7198079057893054624?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/7198079057893054624?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/U8F3RGRI5Ro/my-first-talk-android-brief.html" title="My first talk, Android: A brief introduction to the open OS" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2009/11/my-first-talk-android-brief.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkEBRHo9fSp7ImA9WxNUEEQ.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-6180860252317631137</id><published>2009-11-01T16:57:00.001Z</published><updated>2009-11-01T16:57:35.465Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-01T16:57:35.465Z</app:edited><title>Results: Scala Vs Java</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I’ve just got my first series of results, although the timing measured is’nt accurate the number of Instructions are accurate. The results dont look too promising, a rather let down with Scala performing slower than Java on the Android platform. The results are given below:&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Results:    &lt;br /&gt;Scala:    &lt;br /&gt;Sorting = 1219msec    &lt;br /&gt;Searching time = 37msec    &lt;br /&gt;Total instructions executed: 1397082    &lt;br /&gt;Method invocations: 183121    &lt;br /&gt;Java:    &lt;br /&gt;Sorting = 343msec    &lt;br /&gt;Searching time = 4msec    &lt;br /&gt;Total instructions executed: 895190    &lt;br /&gt;Method invocations: 75442&lt;/p&gt;  &lt;p&gt;I have conducted further tests using the Trace view and even here the Java implementation bests the Scala one, with Java executing at 2.9msec and Scala at 4.5msec in creating, sorting and searching 100 objects.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-6180860252317631137?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oHssfwhj7WtGfqAsqUwLknZJNjY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oHssfwhj7WtGfqAsqUwLknZJNjY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oHssfwhj7WtGfqAsqUwLknZJNjY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oHssfwhj7WtGfqAsqUwLknZJNjY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/pd7-MfZNUDY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/6180860252317631137/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2009/11/results-scala-vs-java.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/6180860252317631137?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/6180860252317631137?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/pd7-MfZNUDY/results-scala-vs-java.html" title="Results: Scala Vs Java" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2009/11/results-scala-vs-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEEHQngycSp7ImA9WxNVGE4.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-8949474866441242350</id><published>2009-10-29T16:10:00.001Z</published><updated>2009-10-29T16:10:33.699Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-29T16:10:33.699Z</app:edited><title>My take on the binary search in Scala</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;As I’ve learnt in the last few days, programming in a functional based language is a whole different ball game, and its bloody difficult :D. I had trouble finding code relating to doing a binary search in a functional perspective with scala, so I’ve come up with a few lines of code that does so, if anybody has any comments on latering this code to make it more “scala” oriented or “functional” please do so.&lt;/p&gt;  &lt;p&gt;&lt;code&gt;def binarySearch(s: String, list: List[RandomString],low: Int, high: Int): Int = {      &lt;br /&gt;&lt;/code&gt;&lt;code&gt;(high-low) match {      &lt;br /&gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;case _ if (high-low) &amp;gt; 0 =&amp;gt; { java.lang.Integer.parseInt(s) match {      &lt;br /&gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;case _ if java.lang.Integer.parseInt(s) &amp;lt; list(low + (high-low)/2).num =&amp;gt; binarySearch(s, list, low, low + (high-low)/2)      &lt;br /&gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;case _ if java.lang.Integer.parseInt(s) &amp;gt; list(low + (high-low)/2).num =&amp;gt; binarySearch(s, list, (low + (high-low)/2)+1, high)      &lt;br /&gt;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;case _ =&amp;gt; (low + (high-low)/2)+1 } } &lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;case _ if (high-low) &amp;lt;= 0 =&amp;gt; -1 } }&lt;/code&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-8949474866441242350?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/t0c1XMniuXyEE1poNU_UBETH1hA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t0c1XMniuXyEE1poNU_UBETH1hA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/t0c1XMniuXyEE1poNU_UBETH1hA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/t0c1XMniuXyEE1poNU_UBETH1hA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/u3E9D0BNPJs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/8949474866441242350/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2009/10/my-take-on-binary-search-in-scala.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/8949474866441242350?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/8949474866441242350?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/u3E9D0BNPJs/my-take-on-binary-search-in-scala.html" title="My take on the binary search in Scala" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2009/10/my-take-on-binary-search-in-scala.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUERnY9eip7ImA9WxNVEk8.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-573659776360681411</id><published>2009-10-22T16:41:00.000+01:00</published><updated>2009-10-22T16:43:27.862+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-22T16:43:27.862+01:00</app:edited><title>Scala Testing</title><content type="html">I've put up the first Scala code I've prepared for testing here: http://github.com/akshaydashrath/Scala-Performance-Testing-Android , any feedback would be most appreciated. Feel free to alter the code. I will be updating this regularly, implementing more Scala principles i.e. FP principles into the code, its a bit hard thinking in FP terms after programming with Java over the last year, but I'm getting there, slower than I hoped though :D.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-573659776360681411?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OdviZBsGMc5HNNrmUOkIU5qX5-k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OdviZBsGMc5HNNrmUOkIU5qX5-k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OdviZBsGMc5HNNrmUOkIU5qX5-k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OdviZBsGMc5HNNrmUOkIU5qX5-k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/ccwk8NF1kF4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/573659776360681411/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2009/10/scala-testing.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/573659776360681411?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/573659776360681411?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/ccwk8NF1kF4/scala-testing.html" title="Scala Testing" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2009/10/scala-testing.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AFSXk7cSp7ImA9WxNWGUg.&quot;"><id>tag:blogger.com,1999:blog-7370442686255269754.post-7417124182611679835</id><published>2009-10-19T14:27:00.000+01:00</published><updated>2009-10-19T14:41:58.709+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-19T14:41:58.709+01:00</app:edited><title>Scala and Android</title><content type="html">This is my first post on my first blog, have'nt really fancied blogging, I think I'm just too lazy, but of late I've been working on the Android platform quite extensively and thought that some of what I'm doing might actually help developers. I'm keeping this blog technical but might also throw in a bit of end-user experiences with Android as well as a few personal experiences for comic relief :D&lt;br /&gt;&lt;br /&gt;&lt;div class="style2"&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Scala&lt;span&gt; &lt;/span&gt;Programming Language:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The Scala programming Language is an object oriented functional programming language designed to run on the JVM. It is ideal for programming on the Dalvik Platform as code written with the Scala language is more compact, readable and could possibly have performance benefits (which will be analysed at a later date) and it also supports Java and Android APIs.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;You can easily build DSL with Scala and the trait (e.g. mixin) aspect of Scala is very attractive in order to build intricate activities which mixes different logic.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;Requirements:&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul type="disc"&gt;&lt;br /&gt; &lt;li class="style2"&gt;Eclipse IDE&lt;span&gt; &lt;/span&gt;– Galileo Classic v3.6&lt;/li&gt;&lt;br /&gt; &lt;li class="style2"&gt;Android ADT&lt;span&gt; &lt;/span&gt;plugin v0.93&lt;/li&gt;&lt;br /&gt; &lt;li class="style2"&gt;Android SDK v1.6r1&lt;/li&gt;&lt;br /&gt; &lt;li class="style2"&gt;Scala&lt;span&gt; &lt;/span&gt;eclipse plug-in latest&lt;/li&gt;&lt;br /&gt; &lt;li class="style2"&gt;Scala-android library      latest&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span&gt;&lt;br /&gt;Step 1: Setting up the environment&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The Scala project is rather heavy on resources therefore we would need to increase the heap size of the eclipse VM and of the dx tool which is present in the SDK.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;Editing the eclipse memory size:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;In order to increase the maximum permissible memory of the IDE we need to edit the &lt;em&gt;exlipse.ini&lt;/em&gt; file that resides in the root folder of the IDE (in my case C:/Program Files/eclipse or /opt/eclipse). Open the file with your favourite text editor and edit the files as shown in the figure below and add the following lines to the file:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt; 256m&lt;br /&gt;-vmargs&lt;br /&gt;-Xms256m&lt;br /&gt;-Xmx1024m&lt;br /&gt;-XX:PermSize=64m&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://docs.google.com/File?id=dc2cgzjn_175g325cwdg_b" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;Editing dx.bat/dx.sh:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The file &lt;em&gt;dx.bat&lt;/em&gt;/dx.sh is located in the &amp;lt;ANDROID_HOME&amp;gt;\platforms\android-1.6\tools. Open dx.bat/dx.sh with your favourite text editor and uncomment the javaOpts line while changing the value to 512M:&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span&gt;&lt;img src="http://docs.google.com/File?id=dc2cgzjn_176cjr7rbg7_b" alt="" /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;Step 2: Install Scala&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I installed both the stand alone Scala installer as well as the Eclipse IDE plugin, which I recommend to get the system working stable.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;The Scala Installer:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;On writing this post the latest version of Scala available for download was the 2.7.6 version, which can be downloaded from: &lt;a href="http://www.scala-lang.org/downloads/distrib/files/scala-2.7.6.final-installer.jar"&gt;http://www.scala-lang.org/downloads/distrib/files/scala-2.7.6.final-installer.jar&lt;/a&gt; . The installation procedure is quite trivial and further information can be found on the Scala website. The installer consists of a sequence of simple steps which on completion result in the installation of Scala on your system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;Eclipse Plugin:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;In order to install the eclipse plugin we have to goto the &lt;em&gt;Help-&amp;gt;Install New Software-&amp;gt;Add&lt;/em&gt; and then enter the following:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Name: Scala&lt;br /&gt;Location: http://www.scala-lang.org/scala-eclipse-plugin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;You should then see &lt;em&gt;"Scala Eclipse Plugin"&lt;/em&gt; offered for installation. Click on the &lt;em&gt;"Install"&lt;/em&gt; button and follow the instructions from there.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3: Download scala-android.jar&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Open a new shell prompt window in administrator mode. Navigage to the &amp;lt;SCALA_HOME&amp;gt;/bin directory defined in the previous Scala installation step. Then enter the following commands&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;sbaz install scala-android&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The scala-android library will be installed in &amp;lt;SCALA_HOME&amp;gt;/lib directory.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;Step 4: Creating a Scala Project&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class="style2"&gt;&lt;span&gt;In order to create our first Scala project we go about creating first an Android Project in the Eclipse IDE (&lt;em&gt;File-&amp;gt;New-&amp;gt;Android Project&lt;/em&gt;).&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p class="style2"&gt;&lt;span&gt;&lt;img class="aligncenter" src="http://docs.google.com/File?id=dc2cgzjn_177d9d5msgd_b" alt="" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="style2"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Then right mouse click on the project in the package workspace and navigate down to the &lt;em&gt;Scala&lt;/em&gt; menu, then click on &lt;em&gt;Add Scala Nature, &lt;/em&gt;once this is completed the project would look like:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class="style2"&gt;&lt;span&gt;&lt;!--[if gte vml 1]&amp;gt;--&gt;&lt;br /&gt;&lt;img class="aligncenter" src="http://docs.google.com/File?id=dc2cgzjn_178f8n8fsc8_b" alt="" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;p align="center"&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="style2"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Once this is complete, right mouse click on the project again and click on the &lt;em&gt;Properties-&amp;gt;Builders&lt;/em&gt; tab, and make sure the Scala Builder is in the position as shown in the figure (you will have to move it down two places)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class="style2"&gt;&lt;span&gt;&lt;img class="aligncenter" src="http://docs.google.com/File?id=dc2cgzjn_179dnmn3hcc_b" alt="" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="style2"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Then open the &lt;em&gt;Java Build Path-&amp;gt;Libraries&lt;/em&gt; tab and remove the &lt;em&gt;Scala Library Version 2.6 final&lt;/em&gt; , then add the scala-android.jar file by click on &lt;em&gt;Add External Jar. &lt;/em&gt;You will then have the menu resembling:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class="style2"&gt;&lt;span&gt;&lt;img class="aligncenter" src="http://docs.google.com/File?id=dc2cgzjn_1806f42mrcz_b" alt="" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="style2"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Note: The build process needs to compile the scala files into classes which then compiles them into dex files. If you receive errors upon compilation or classpath, try to clean and rebuild the project.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;Step 5: Creating ScalaTest.scala&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Now goto the &lt;em&gt;ScalaTest-&amp;gt;src-&amp;gt;com.scala&lt;/em&gt; package and delete the the file ScalaTest.java. Right mouse click on the package and then click on &lt;em&gt;New-&amp;gt;Other-Scala&lt;/em&gt; &lt;em&gt;&lt;span&gt;Class&lt;/span&gt;&lt;/em&gt;&lt;span&gt; , call this class ScalaTest.&lt;/span&gt;&lt;br /&gt;&lt;div class="style2"&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;Open the file &lt;em&gt;ScalaTest.scala&lt;/em&gt; and enter the following code and save it:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;span&gt;package test.scala&lt;br /&gt;import android.app.Activity&lt;br /&gt;import android.os.Bundle&lt;br /&gt;import android.widget.TextView&lt;br /&gt;class ScalaTest extends Activity {&lt;br /&gt;override def onCreate(savedInstanceState: Bundle) {&lt;br /&gt;super.onCreate(savedInstanceState)&lt;br /&gt;val tv = new TextView(this)&lt;br /&gt;tv.setText("Hello Android, it's me, Scala!")&lt;br /&gt;setContentView(tv)&lt;br /&gt;}}&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;Step 6: Running the application&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In order to run the application goto &lt;em&gt;&lt;span&gt;Run-&amp;gt;Run Configuration-&amp;gt;Android Application &lt;/span&gt;&lt;/em&gt;&lt;span&gt;and run set it up as shown in the figure below, and then click on Run.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;!--[if gte vml 1]&amp;gt;--&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://docs.google.com/File?id=dc2cgzjn_182d26wm9c4_b" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;If everything was set up right you’d then see the emulator load up and run your application&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;img src="http://docs.google.com/File?id=dc2cgzjn_183dqtpg6ft_b" alt="" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;References:&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul type="disc"&gt;&lt;br /&gt; &lt;li class="style2"&gt;http://www.scala-lang.org/node/160&lt;/li&gt;&lt;br /&gt; &lt;li class="style2"&gt;http://www.ibm.com/developerworks/opensource/library/os-eclipse-scala/index.html?ca=dgr-jw64Android-Scaladth-o&amp;amp;S_TACT=105AGY46&amp;amp;S_CMP=grjw64#&lt;/li&gt;&lt;br /&gt; &lt;li class="style2"&gt;&lt;span&gt;http://www.scala-lang.org/node/1403&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;And special thanks to Carl from Novoda UK ( www.novoda.com)&lt;br /&gt;The original post can be found at www.novoda.com/blog&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7370442686255269754-7417124182611679835?l=www.akshaydashrath.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oeBPfBrhVLwi-CMPmNzkzI-elSw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oeBPfBrhVLwi-CMPmNzkzI-elSw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oeBPfBrhVLwi-CMPmNzkzI-elSw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oeBPfBrhVLwi-CMPmNzkzI-elSw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RoboticMusings/~4/hyG8mWNNCSA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://www.akshaydashrath.com/feeds/7417124182611679835/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.akshaydashrath.com/2009/10/scala-and-android.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/7417124182611679835?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/7370442686255269754/posts/default/7417124182611679835?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RoboticMusings/~3/hyG8mWNNCSA/scala-and-android.html" title="Scala and Android" /><author><name>Akshay Dashrath</name><uri>http://www.blogger.com/profile/06149672699510913489</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="21" height="32" src="http://3.bp.blogspot.com/-MhKF5jBn5Jc/TjKIk5f7jeI/AAAAAAAAAxM/7MO47wgp6Ms/s220/IMG_2381_res.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://www.akshaydashrath.com/2009/10/scala-and-android.html</feedburner:origLink></entry></feed>

