<?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>Android from scratch &#187; emulator</title>
	<atom:link href="http://android.opensourceror.org/tag/emulator/feed/" rel="self" type="application/rss+xml" />
	<link>http://android.opensourceror.org</link>
	<description>n00bs leading the n00bs</description>
	<lastBuildDate>Thu, 28 Jan 2010 01:50:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Emulator frustrations for n00bs</title>
		<link>http://android.opensourceror.org/2009/12/23/emulator-frustrations-for-n00bs/</link>
		<comments>http://android.opensourceror.org/2009/12/23/emulator-frustrations-for-n00bs/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 00:31:56 +0000</pubDate>
		<dc:creator>luke</dc:creator>
				<category><![CDATA[SDK level 2.0.1]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[n00b frustrations]]></category>
		<category><![CDATA[adb]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[DDMS]]></category>
		<category><![CDATA[device bridge]]></category>
		<category><![CDATA[force close]]></category>
		<category><![CDATA[kill server]]></category>
		<category><![CDATA[n00bs]]></category>
		<category><![CDATA[patience]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://android.opensourceror.org/2009/12/23/emulator-frustrations-for-n00bs/</guid>
		<description><![CDATA[Here are a hodgepodge of issues related to using the emulator.
The emulator takes forever to come up
Yes, yes it does, especially the first time you start it. It&#8217;s emulating booting up a complete OS running on a different architecture (ARM processor) than your development machine &#8211; so yeah, it&#8217;s a little slow. If you have [...]]]></description>
			<content:encoded><![CDATA[<p>Here are a hodgepodge of issues related to using the emulator.</p>
<h2>The emulator takes forever to come up</h2>
<p>Yes, yes it does, especially the first time you start it. It&#8217;s emulating booting up a complete OS running on a different architecture (ARM processor) than your development machine &#8211; so yeah, it&#8217;s a little slow. If you have an Android device you know that even running natively it&#8217;s not exactly an instant startup, so expect some delays in the emulator too.</p>
<p>Just go ahead and start the emulator when you start Eclipse and it&#8217;ll be there when you need it. Keep it running, there&#8217;s no need to stop and start it all the time.</p>
<h2>Why does deploying a package to the emulator keep failing?</h2>
<p>Often this is because you&#8217;re trying to deploy before the emulator has finished booting (because you waited until you were ready to try out your app before starting the emulator). The Home process needs to be running before a deploy will work. It&#8217;s a common n00b mistake to try the &#8220;run&#8221; button on Eclipse, watch it start an emulator and fail to deploy, kill the emulator, and try it again &#8211; it will never succeed until the emulator finishes booting.</p>
<p>Deploy may also fail for basically the same reason when the device bridge server has failed (see below) and Eclipse DDMS starts a new emulator (or tries to).</p>
<p>Of course, the other reason deploying may fail is if there&#8217;s something wrong with your package. Perhaps the API you&#8217;re developing against isn&#8217;t available on the emulator, or you&#8217;ve messed up something in the application manifest. But those problems should be fairly easy to diagnose from the error messages on the console.</p>
<h2>I keep ending up with emulators that can&#8217;t be attached to</h2>
<p>I&#8217;m not sure why this happens &#8211; something to do with networking (esp. during suspend/hibernate), or non-Sun Java JDK, or updating components while an emulator is running. But sometimes you&#8217;ll be running an emulator and it won&#8217;t show up in the list of emulators (either the command line <span style="font-family: monospace;">adb devices</span> or in the Eclipse DDMS perspective &#8211; or I&#8217;ve seen it show up in the perspective but without any processes).</p>
<p>Of course the simple remedy is to kill the emulator and start a new one, but as noted previously, that takes forever. The emulator is  running &#8211; why can&#8217;t you connect to it?</p>
<p>Try using the &#8220;Reset adb&#8221; option from the DDMS Devices view menu, or restarting the server at the command line:</p>
<p><span style="font-family: monospace;"> </span></p>
<p><span style="font-family: Courier New;">adb kill-server<br />
adb start-server</span></p>
<p><span style="font-family: monospace;"> </span></p>
<p>Otherwise I don&#8217;t know what you can do.<span> I have a <a href="http://moderator.appspot.com/#11/e=120951&amp;t=agltb2RlcmF0b3JyLwsSCERvcnlVc2VyIiF1ZjQ3YTg1OTI1NmQ4ZWI5MDQ4Y2NjM2I4NmJlMjZhNTAM" target="_blank">question in about this</a> and I&#8217;m waiting for an answer, too.</span></p>
<h2><span>My emulator keeps offering to &#8220;force close&#8221; odd things, especially at startup</span></h2>
<p><span>This is pretty common for me at least; you may never have seen it if you have better hardware. Just choose the &#8220;wait&#8221; option, everything will work out. I have a theory about this &#8211; perhaps someone who knows better will enlighten me if I&#8217;m wrong. Android has a policy of offering to force close non-responsive elements, where &#8220;non-responsive&#8221; means it hasn&#8217;t handled an event five seconds after it was notified of the event. As noted above, you&#8217;re running an emulator here, and it tends to run a bit slowly &#8211; but the clock is still ticking in realtime. I believe it&#8217;s simply a matter of certain parts of the operating system taking too long to respond, especially at boot time. Just ignore it and wait for them to finish.<br />
</span></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=8892559f-e916-8db0-bffa-7d983d121da6" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://android.opensourceror.org/2009/12/23/emulator-frustrations-for-n00bs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating your own emulator skins</title>
		<link>http://android.opensourceror.org/2009/12/09/creating-your-own-emulator-skins/</link>
		<comments>http://android.opensourceror.org/2009/12/09/creating-your-own-emulator-skins/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 07:57:36 +0000</pubDate>
		<dc:creator>daeron</dc:creator>
				<category><![CDATA[Shiny Objects]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[skins]]></category>

		<guid isPermaLink="false">http://android.opensourceror.org/?p=13</guid>
		<description><![CDATA[One of the first things a software developer does when beginning to work with a new IDE or tool set is to look for ways to customize their environment, either to better fit the way they work or to match their sense of style. For example, I always prefer my code editor to display primarily [...]]]></description>
			<content:encoded><![CDATA[<p class="mceTemp">One of the first things a software developer does when beginning to work with a new IDE or tool set is to look for ways to customize their environment, either to better fit the way they work or to match their sense of style. For example, I always prefer my code editor to display primarily green text on a black background (black on white just hurts my eyes!).  Development with the Android SDK offers both customization of the IDE (eclipse settings) as well as customization of the emulator with the use of &#8220;skins&#8221;.</p>
<p class="mceTemp">Each version of the android platform comes with several default skins which you can find located in the directories under &lt;android-sdk-base-directory&gt;/platforms/android-X.X/skins. An android skin consists of a single  layout file referencing a number of image files.</p>
<p class="mceTemp">One particular skin that caught my eye was the platform-1.5/HVGA skin which looked most similar to the android-based phones I was looking at. However, not content with the drab maroon/red color scheme I decided to load up the main device background image in <a href="http://www.gimp.org/">&#8220;The Gimp&#8221; image editing tool</a> to add some zip. The results are shown below &#8211; a basic &#8220;leather&#8221; phone and &#8220;camo&#8221; style for military enthusiasts.</p>
<div id="attachment_14" class="wp-caption aligncenter" style="width: 651px"><img class="size-full wp-image-14 " title="Sample Skins" src="http://android.opensourceror.org/wp-content/uploads/2009/12/Sample-Skins.png" alt="Sample Skins created for Android Emulator with The Gimp" width="641" height="538" /><p class="wp-caption-text">Sample Skins created for Android Emulator with The Gimp</p></div>
<p>I&#8217;ve made these two skins freely available for download in a zip file at the bottom of this post. Also included in the zip file is a gimp format file (device.xcf) if you&#8217;re familiar with the tool and would like to try overlaying your own textures using the &#8220;mask&#8221; layer. To use these skins, simply unzip the file into the skins directory of the platform(s) you are targeting.</p>
<p style="text-align: center;"><a rel="attachment wp-att-19" href="http://android.opensourceror.org/2009/12/09/creating-your-own-emulator-skins/skins-location/"><img class="size-full wp-image-19 aligncenter" title="Skins-Location" src="http://android.opensourceror.org/wp-content/uploads/2009/12/Skins-Location.png" alt="Custom skins extracted under the &quot;skins&quot; directory" width="613" height="479" /></a></p>
<p>The next step is to open the Android SDK and AVD manager, delete your existing Android Virtual Device, and add a new device for the platform and skin you wish to use:</p>
<p style="text-align: center;"><a rel="attachment wp-att-20" href="http://android.opensourceror.org/2009/12/09/creating-your-own-emulator-skins/create-new-avd/"><img class="size-full wp-image-20 aligncenter" title="Create New AVD" src="http://android.opensourceror.org/wp-content/uploads/2009/12/Create-New-AVD.png" alt="Create New AVD" width="410" height="564" /></a></p>
<p style="text-align: left;">Here is <a href="http://www.android.encke.net/">one other site</a> I found with skins more closely matching real phones if you&#8217;d like to try them as well. Enjoy!</p>
<p style="text-align: left;"><a href="http://android.opensourceror.org/wp-content/uploads/2009/12/android-skins.zip">Android Skins (downloadable .zip file)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://android.opensourceror.org/2009/12/09/creating-your-own-emulator-skins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My emulator looks different than in the examples!</title>
		<link>http://android.opensourceror.org/2009/12/08/my-emulator-looks-different-than-in-the-examples/</link>
		<comments>http://android.opensourceror.org/2009/12/08/my-emulator-looks-different-than-in-the-examples/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 00:22:28 +0000</pubDate>
		<dc:creator>luke</dc:creator>
				<category><![CDATA[SDK level 2.0]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[n00b frustrations]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[skins]]></category>

		<guid isPermaLink="false">http://android.opensourceror.org/?p=8</guid>
		<description><![CDATA[
Illustrations of emulator usage in books and on the web have emulator skins that look like devices, but if your SDK is at all recent, the emulator doesn&#8217;t look like that &#8211; the screen is bare. This is a seemingly insignificant thing, but strangely no one seems to talk about it. I didn&#8217;t find any [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Illustrations of emulator usage <a href="http://www.manning.com/ableson/" target="_blank">in books</a> and <a href="http://blogspot.fluidnewmedia.com/2009/04/displaying-google-maps-in-the-android-emulator/" target="_blank">on the web</a> have emulator skins that look like devices, but if your SDK is at all recent, the emulator doesn&#8217;t look like that &#8211; the screen is bare. This is a seemingly insignificant thing, but strangely no one seems to talk about it. I didn&#8217;t find any documentation explaining this &#8211; I had to ask like a n00b on the IRC channel. Well, to save you the embarrassment &#8211; it&#8217;s pretty simple. For the API 1.5 and before, the emulator looks like a device. For 1.6 and after, it doesn&#8217;t. If you really want your emulator to look like that, you need to use an emulator targeted at 1.5 or before &#8211; as far as I can tell, there&#8217;s no setting you can use to configure 1.6 or 2.0 to show the device skin from 1.5.</p>
<div style="width: auto; height: auto;">
<div class="wp-caption aligncenter" style="width: 1034px"><img title="Emulator skins" src="https://wave.googleusercontent.com/wave/attachment/emulator-skins.png?id=bVzvsH3f13&amp;key=AH0qf5x26L6IQH5VA7Gj1QLzbYw-TfgOjw" alt="Emulators for versions 1.5 and 1.6" width="1024" height="577" /><p class="wp-caption-text">Emulators for versions 1.5 and 1.6</p></div>
</div>
<p><span style="&quot;full&quot;&gt;&lt;w:caption&gt;Emulators"> </span><span> </span></div>
]]></content:encoded>
			<wfw:commentRss>http://android.opensourceror.org/2009/12/08/my-emulator-looks-different-than-in-the-examples/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

