<?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>Novoda &#187; Uncategorized</title>
	<atom:link href="http://novoda.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://novoda.com</link>
	<description>Android mobile development and consultancy</description>
	<lastBuildDate>Wed, 05 Oct 2011 11:15:50 +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>Live Wallpapers part 1 &#8211; Animated Live Wallpaper</title>
		<link>http://novoda.com/2010/03/03/live-wallpapers-part-1-animated-live-wallpaper/</link>
		<comments>http://novoda.com/2010/03/03/live-wallpapers-part-1-animated-live-wallpaper/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 12:09:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[livewallpaper]]></category>
		<category><![CDATA[nexusone]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wallpaper]]></category>

		<guid isPermaLink="false">http://novoda.com/?p=364</guid>
		<description><![CDATA[Live wallpapers serve up an impressive introduction to Nexus Ones. Introduced in Android 2.1, these dashboard backgrounds have the advantage of being able to interact with a device programatically.  To celebrate receiving our Nexus Ones at a Londroid / Google Android developer lab have excitedly created some quick LiveWallpapers demos we&#8217;d like to share.
Animated LiveWallpaper
Live [...]]]></description>
			<content:encoded><![CDATA[<p>Live wallpapers serve up an impressive introduction to Nexus Ones. Introduced in Android 2.1, these dashboard backgrounds have the advantage of being able to interact with a device programatically.  To celebrate receiving our Nexus Ones at a Londroid / Google Android developer lab have excitedly created some quick LiveWallpapers demos we&#8217;d like to share.</p>
<h2>Animated LiveWallpaper</h2>
<p>Live Wallpapers offer unique screen real estate over widgets and a chance to show off some dashboard visuals. Childhood memories have instilled a message of freedom into the image of a Testerrossa speeding down an open road with a pretty girl ala &#8220;Ferris Buellers day off&#8221; and Sega&#8217;s classic &#8220;Outrun&#8221;. So What better to express the open platform than an OutRun inspired Live Wallpaper?</p>
<p>A sexy implementation using the openly available <a href="http://github.com/novoda/android/tree/master/Livewallpaper">github source code</a>:<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ZjzAqJL-gNc&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/ZjzAqJL-gNc&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://andappstore.com/AndroidApplications/apps/OutRun_LiveWallpaper">Download the outrun livewallpaper for the Nexus One</a><br />
Scenery changes every time the phone is sleeping as you can see <a title="outrunlivewallpaper-day" href="http://qik.com/video/5226711">here</a>, <a title="outrunlivewallpaper-sunset" href="http://qik.com/video/5226632">here</a> and <a title="outrunlivewallpaper-night" href="http://qik.com/video/5226436">here</a>, in awful quality.</p>
<p>Admittedly my graphics aren&#8217;t quite as inspiring.</p>
<p><a href="http://novoda.com/wp-content/uploads/2010/02/demo_graphics.png"><img class="aligncenter size-full wp-image-368" title="demo_graphics" src="http://novoda.com/wp-content/uploads/2010/02/demo_graphics.png" alt="Demo graphics" width="589" height="292" /></a></p>
<p><a href="http://cloud.github.com/downloads/novoda/android/nexus_livewallpaper_anim.apk">Download Demo apk compiled for a Nexus One</a></p>
<h3>Animated LiveWallpaper Notes</h3>
<p>Src code for Demos projects on Github:<br />
<a href="http://github.com/novoda/android/tree/master/Livewallpaper/switch_leftright/">Switch Image on left/right</a><br />
<a href="http://github.com/novoda/android/tree/master/Livewallpaper/switch_animation/">Switch Animation on left/right</a></p>
<p>A Live Wallpaper consists of an &#8216;Engine&#8217; and a &#8216;Service&#8217;. The engine specifies how your wallpaper is rendered while it&#8217;s service creates instances for the home screen. A wallpaper service differs from a normal service in addition of  OnEngineCreate(). This has been the first time I&#8217;ve used the canvas extensively and I learned you first must lock the canvas and choose which region you wish to redraw. onVisibilityChanged() or onSurfaceChanged() will read much like the instructions of how to draw your canvas from empty. Onvisibility() will first change to true in rendering your wallpaper  preview and this will return false when your wallpaper falls out of view and you transition to your dashboard. This is a handy function as every time your wallpaper falls out of view you can stop everything you are doing and free up the associated resources.</p>
<p>To update the drawn canvas state you need to tell the UI to refresh via a handler. In my case I needed to request an indexed image from within an collection upon each draw, Each time the handler returns back I update my drawn bitmap with a frame from the animation. It should be noted here that you should only be keeping the image Resource IDs in memory rather than the actual binary contents of the images. I was at first doing this, following a demo I downloaded but I soon ran into this error at runtime:</p>
<pre class="sh_java">ERROR/AndroidRuntime(1067):
Uncaught handler: thread main exiting due to uncaught exception
java.lang.OutOfMemoryError: bitmap size exceeds VM budget</pre>
<p>This is because all of the png images although starting out quite small, when transformed to bitmaps upon interpreation they become a lot larger and quickly fill up the allotted memory allocation. Instead I just kept an array of resIds using res.getIdentifier(). This seems pretty good in the performance stakes.</p>
<p>I chose to play an animation for left and right steering when a user flicks between panels. I kept track of this via the onTouchEvent()&#8217;s <a href="http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_DOWN">ACTION_DOWN</a> and then checking which side of the screen their<a href="http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_UP"> ACTION_UP</a> was upon. The reason I added a timer in there was to add a little delay for the animation so you can appreciate the perfect driving line of the Testerossa.An area that I would like to return to is recognising when the user&#8217;s finger has dragged the screen a certain distance. My original approach to recognising significant drag was to monitor the start and end points and see if they lay at different sides of the screen, I have since learned measuring the distance within onOffSetsChanged would probably be a more reliable approach.</p>
<p>The last thing of note with Live Wallpapers is that they have a convenience listener for dropping icons and tapping on the dashboard screen via sendWallpaperCommand() and then acting on the input via onCommand(), these could also be very useful and are used to good effect in the demos with water droplets and colours.</p>
<p>At the moment it seems like the wallpaper is a bit of a memory hog and I&#8217;d like to find out why. Any suggestions are appreciated.<br />
We think that the problem is in the BitmapFactory.decodeResources() function recreating the Bitmap every time. In order to get around this I think the best way would be to create a &#8217;spriteSheet&#8217; then move around the area of this big sheet masking it to only the area I need like one of those revolving wheels that show the horse running. Live and learn, I always wondered why people used sprite sheets in games programming I guess this must be one of the reasons.</p>
<p>As a side note, if anyone has any information on how The Nexus One splash screen is able to read in it&#8217;s splash screen consisting of 97pngs (/system/media/bootanimation.zip)  I&#8217;d love to hear how they achieved this. When developing ideas for your Live Wallpapers consider trying to include the interaction of forces particular to the context of a mobile device such as time, movement and position.</p>
<blockquote><p>Android SDK at time of writing was: <strong>android-sdk-mac_x86-2.1 ( SDK version 7 )</strong></p></blockquote>
<h3>Citations &amp; Research</h3>
<ul>
<li><cite><a href="http://code.google.com/p/android-apps-by-minghai/">Really cute anime live wallpaper on google code</a></cite></li>
<li><cite><a href="http://github.com/novoda/android/tree/master/Livewallpaper/switch_leftright/">Github: Demo of switching left and right</a></cite></li>
<li><cite><a href="http://github.com/novoda/android/tree/master/Livewallpaper/switch_animation/">Github: Demo of switching Animation on left/right</a></cite></li>
<li><cite><a href="http://cloud.github.com/downloads/novoda/android/nexus_livewallpaper_anim.apk">Live Wallpaper anim demo APK for Nexus One</a></cite></li>
</ul>
<script type="text/javascript" src="/wp-content/plugins/shjs-syntax-hiliter/shjs/lang/sh_java.js"></script>


Share this post:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F&amp;partner=sociable" title="Print"><img src="http://novoda.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Live%20Wallpapers%20part%201%20-%20Animated%20Live%20Wallpaper&amp;body=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F" title="email"><img src="http://novoda.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F&amp;title=Live%20Wallpapers%20part%201%20-%20Animated%20Live%20Wallpaper&amp;bodytext=Live%20wallpapers%20serve%20up%20an%20impressive%20introduction%20to%20Nexus%20Ones.%20Introduced%20in%20Android%202.1%2C%20these%20dashboard%20backgrounds%20have%20the%20advantage%20of%20being%20able%20to%20interact%20with%20a%20device%20programatically.%C2%A0%20To%20celebrate%20receiving%20our%20Nexus%20Ones%20at%20a%20Londroi" title="Digg"><img src="http://novoda.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F&amp;title=Live%20Wallpapers%20part%201%20-%20Animated%20Live%20Wallpaper&amp;notes=Live%20wallpapers%20serve%20up%20an%20impressive%20introduction%20to%20Nexus%20Ones.%20Introduced%20in%20Android%202.1%2C%20these%20dashboard%20backgrounds%20have%20the%20advantage%20of%20being%20able%20to%20interact%20with%20a%20device%20programatically.%C2%A0%20To%20celebrate%20receiving%20our%20Nexus%20Ones%20at%20a%20Londroi" title="del.icio.us"><img src="http://novoda.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F&amp;title=Live%20Wallpapers%20part%201%20-%20Animated%20Live%20Wallpaper" title="Reddit"><img src="http://novoda.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Live%20Wallpapers%20part%201%20-%20Animated%20Live%20Wallpaper%20-%20http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F" title="Twitter"><img src="http://novoda.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F&amp;title=Live%20Wallpapers%20part%201%20-%20Animated%20Live%20Wallpaper&amp;annotation=Live%20wallpapers%20serve%20up%20an%20impressive%20introduction%20to%20Nexus%20Ones.%20Introduced%20in%20Android%202.1%2C%20these%20dashboard%20backgrounds%20have%20the%20advantage%20of%20being%20able%20to%20interact%20with%20a%20device%20programatically.%C2%A0%20To%20celebrate%20receiving%20our%20Nexus%20Ones%20at%20a%20Londroi" title="Google Bookmarks"><img src="http://novoda.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F&amp;t=Live%20Wallpapers%20part%201%20-%20Animated%20Live%20Wallpaper" title="Facebook"><img src="http://novoda.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F&amp;t=Live%20Wallpapers%20part%201%20-%20Animated%20Live%20Wallpaper" title="HackerNews"><img src="http://novoda.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F" title="Technorati"><img src="http://novoda.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnovoda.com%2F2010%2F03%2F03%2Flive-wallpapers-part-1-animated-live-wallpaper%2F&amp;partner=sociable" title="PDF"><img src="http://novoda.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://novoda.com/2010/03/03/live-wallpapers-part-1-animated-live-wallpaper/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Scala on Android</title>
		<link>http://novoda.com/2009/10/17/scala-on-android/</link>
		<comments>http://novoda.com/2009/10/17/scala-on-android/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 19:31:43 +0000</pubDate>
		<dc:creator>Akshay Dashrath</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Languages & syntax]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[scala]]></category>

		<guid isPermaLink="false">http://www.novoda.com/blog/?p=154</guid>
		<description><![CDATA[
The Scala Programming Language:
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 [...]]]></description>
			<content:encoded><![CDATA[<div class="style2">
<p><strong>The Scala<span> </span>Programming Language:</strong></p>
<p>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.</p>
<p><span>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.</span></p>
<p><strong></strong></p>
<p><strong> </strong><strong>Requirements:</strong></div>
<ul type="disc">
<li class="style2">Eclipse IDE<span> </span>– Galileo Classic v3.6</li>
<li class="style2">Android ADT<span> </span>plugin v0.93</li>
<li class="style2">Android SDK v1.6r1</li>
<li class="style2">Scala<span> </span>eclipse plug-in latest</li>
<li class="style2">Scala-android library      latest</li>
</ul>
<div>
<p><strong><span><br />
Step 1: Setting up the environment</span></strong></p>
<p>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.</p>
<p><strong></strong></p>
<p><strong> </strong><strong>Editing the eclipse memory size:</strong></p>
<p><span>In order to increase the maximum permissible memory of the IDE we need to edit the <em>exlipse.ini</em> 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:</span></p>
<p><code><span> 256m<br />
-vmargs<br />
-Xms256m<br />
-Xmx1024m<br />
-XX:PermSize=64m</span></code></p>
<p><code> </code></p>
<p><img src="http://docs.google.com/File?id=dc2cgzjn_175g325cwdg_b" alt="" /></p>
<p><strong></strong></p>
<p><strong> </strong></p>
<p><strong> </strong><strong></strong></p>
<p><strong> </strong><strong>Editing dx.bat/dx.sh:</strong></p>
<p><span>The file <em>dx.bat</em>/dx.sh is located in the &lt;ANDROID_HOME&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:</span><br />
<strong><span><img src="http://docs.google.com/File?id=dc2cgzjn_176cjr7rbg7_b" alt="" /></span></strong></p>
<p><strong> </strong><strong>Step 2: Install Scala</strong></p>
<p>I installed both the stand alone Scala installer as well as the Eclipse IDE plugin, which I recommend to get the system working stable.</p>
<p><strong></strong></p>
<p><strong> </strong><strong>The Scala Installer:</strong></p>
<p><span>On writing this post the latest version of Scala available for download was the 2.7.6 version, which can be downloaded from: <a href="http://www.scala-lang.org/downloads/distrib/files/scala-2.7.6.final-installer.jar">http://www.scala-lang.org/downloads/distrib/files/scala-2.7.6.final-installer.jar</a> . 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.</span></p>
<p><strong></strong></p>
<p><strong> </strong><strong>Eclipse Plugin:</strong></p>
<p><span>In order to install the eclipse plugin we have to goto the <em>Help-&gt;Install New Software-&gt;Add</em> and then enter the following:</span></p>
<p><span>Name: Scala<br />
Location: http://www.scala-lang.org/scala-eclipse-plugin</span></p>
<p><span>You should then see <em>&#8220;Scala Eclipse Plugin&#8221;</em> offered for installation. Click on the <em>&#8220;Install&#8221;</em> button and follow the instructions from there.</span></p>
<p><strong></strong></p>
<p><strong>Step 3: Download scala-android.jar</strong></p>
<p><strong> </strong></p>
<p><span>Open a new shell prompt window in administrator mode. Navigage to the &lt;SCALA_HOME&gt;/bin directory defined in the previous Scala installation step. Then enter the following commands</span></p>
<p><span>sbaz install scala-android</span></p>
<p><span>The scala-android library will be installed in &lt;SCALA_HOME&gt;/lib directory.</span></p>
<p><strong></strong></p>
<p><strong> </strong><strong>Step 4: Creating a Scala Project</strong></div>
<p class="style2"><span>In order to create our first Scala project we go about creating first an Android Project in the Eclipse IDE (<em>File-&gt;New-&gt;Android Project</em>).</span></p>
<p class="style2"><span><img class="aligncenter" src="http://docs.google.com/File?id=dc2cgzjn_177d9d5msgd_b" alt="" /></span></p>
<div class="style2">
<p><span>Then right mouse click on the project in the package workspace and navigate down to the <em>Scala</em> menu, then click on <em>Add Scala Nature, </em>once this is completed the project would look like:</span></div>
<p class="style2"><span><!--[if gte vml 1]&gt;--><br />
<img class="aligncenter" src="http://docs.google.com/File?id=dc2cgzjn_178f8n8fsc8_b" alt="" /></span></p>
<p align="center">
<div class="style2">
<p><span>Once this is complete, right mouse click on the project again and click on the <em>Properties-&gt;Builders</em> 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)</span></div>
<p class="style2"><span><img class="aligncenter" src="http://docs.google.com/File?id=dc2cgzjn_179dnmn3hcc_b" alt="" /></span></p>
<div class="style2">
<p><span>Then open the <em>Java Build Path-&gt;Libraries</em> tab and remove the <em>Scala Library Version 2.6 final</em> , then add the scala-android.jar file by click on <em>Add External Jar. </em>You will then have the menu resembling:</span></div>
<p class="style2"><span><img class="aligncenter" src="http://docs.google.com/File?id=dc2cgzjn_1806f42mrcz_b" alt="" /></span></p>
<div class="style2">
<p><span>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.</span></p>
<p><strong></strong></p>
<p><strong> </strong><strong>Step 5: Creating ScalaTest.scala</strong></p>
<p>Now goto the <em>ScalaTest-&gt;src-&gt;com.scala</em> package and delete the the file ScalaTest.java. Right mouse click on the package and then click on <em>New-&gt;Other-Scala</em> <em><span>Class</span></em><span> , call this class ScalaTest.</span></p>
<div class="style2"><span></p>
<p>Open the file <em>ScalaTest.scala</em> and enter the following code and save it:</p>
<p><code><span>package test.scala<br />
import android.app.Activity<br />
import android.os.Bundle<br />
import android.widget.TextView<br />
class ScalaTest extends Activity {<br />
override def onCreate(savedInstanceState: Bundle) {<br />
super.onCreate(savedInstanceState)<br />
val tv = new TextView(this)<br />
tv.setText("Hello Android, it's me, Scala!")<br />
setContentView(tv)<br />
}}</span></code></p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong> </strong><strong>Step 6: Running the application</strong></p>
<p>In order to run the application goto <em><span>Run-&gt;Run Configuration-&gt;Android Application </span></em><span>and run set it up as shown in the figure below, and then click on Run.</span></p>
<p><span><!--[if gte vml 1]&gt;--></span></p>
<p><img src="http://docs.google.com/File?id=dc2cgzjn_182d26wm9c4_b" alt="" /></p>
<p><span>If everything was set up right you’d then see the emulator load up and run your application</span></p>
<p>:</p>
<p><span><img src="http://docs.google.com/File?id=dc2cgzjn_183dqtpg6ft_b" alt="" /></span></p>
<p><em>References:</em></p>
<p></span></div>
<ul type="disc">
<li class="style2">http://www.scala-lang.org/node/160</li>
<li class="style2">http://www.ibm.com/developerworks/opensource/library/os-eclipse-scala/index.html?ca=dgr-jw64Android-Scaladth-o&amp;S_TACT=105AGY46&amp;S_CMP=grjw64#</li>
<li class="style2"><span>http://www.scala-lang.org/node/1403</span></li>
</ul>
</div>



Share this post:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F&amp;partner=sociable" title="Print"><img src="http://novoda.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Scala%20on%20Android&amp;body=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F" title="email"><img src="http://novoda.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F&amp;title=Scala%20on%20Android&amp;bodytext=%0D%0A%0D%0AThe%20Scala%20Programming%20Language%3A%0D%0A%0D%0AThe%20Scala%20programming%20Language%20is%20an%20object%20oriented%20functional%20programming%20language%20designed%20to%20run%20on%20the%20JVM.%20It%20is%20ideal%20for%20programming%20on%20the%20Dalvik%20Platform%20as%20code%20written%20with%20the%20Scala%20language%20is%20more" title="Digg"><img src="http://novoda.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F&amp;title=Scala%20on%20Android&amp;notes=%0D%0A%0D%0AThe%20Scala%20Programming%20Language%3A%0D%0A%0D%0AThe%20Scala%20programming%20Language%20is%20an%20object%20oriented%20functional%20programming%20language%20designed%20to%20run%20on%20the%20JVM.%20It%20is%20ideal%20for%20programming%20on%20the%20Dalvik%20Platform%20as%20code%20written%20with%20the%20Scala%20language%20is%20more" title="del.icio.us"><img src="http://novoda.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F&amp;title=Scala%20on%20Android" title="Reddit"><img src="http://novoda.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Scala%20on%20Android%20-%20http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F" title="Twitter"><img src="http://novoda.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F&amp;title=Scala%20on%20Android&amp;annotation=%0D%0A%0D%0AThe%20Scala%20Programming%20Language%3A%0D%0A%0D%0AThe%20Scala%20programming%20Language%20is%20an%20object%20oriented%20functional%20programming%20language%20designed%20to%20run%20on%20the%20JVM.%20It%20is%20ideal%20for%20programming%20on%20the%20Dalvik%20Platform%20as%20code%20written%20with%20the%20Scala%20language%20is%20more" title="Google Bookmarks"><img src="http://novoda.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F&amp;t=Scala%20on%20Android" title="Facebook"><img src="http://novoda.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://news.ycombinator.com/submitlink?u=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F&amp;t=Scala%20on%20Android" title="HackerNews"><img src="http://novoda.com/wp-content/plugins/sociable/images/hackernews.png" title="HackerNews" alt="HackerNews" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F" title="Technorati"><img src="http://novoda.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fnovoda.com%2F2009%2F10%2F17%2Fscala-on-android%2F&amp;partner=sociable" title="PDF"><img src="http://novoda.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://novoda.com/2009/10/17/scala-on-android/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

