<?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>David Janes&#039; Code Weblog &#187; mobile</title>
	<atom:link href="http://code.davidjanes.com/blog/category/mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.davidjanes.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 11 Apr 2010 12:32:10 +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>How to install Android SDK on your Mac</title>
		<link>http://code.davidjanes.com/blog/2009/11/08/how-to-install-android-sdk-on-your-mac/</link>
		<comments>http://code.davidjanes.com/blog/2009/11/08/how-to-install-android-sdk-on-your-mac/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 10:56:54 +0000</pubDate>
		<dc:creator>David Janes</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=597</guid>
		<description><![CDATA[I was interested in trying the Android emulators yesterday on my Mac, so here&#8217;s what I did. It&#8217;s much simpler than the documentation makes it out to be:

download and unpack the SDK zip file from http://developer.android.com/sdk/index.html
add the SDK tools directory to your path (in ~/.bashrc):
export PATH=${PATH}:${HOME}/…/android-sdk-mac/tools
start Terminal
run the &#8220;Android SDK and AVD Manager&#8221;:
android &#38;

select Settings [...]]]></description>
			<content:encoded><![CDATA[<p>I was interested in trying the Android emulators yesterday on my Mac, so here&#8217;s what I did. It&#8217;s much simpler than the documentation makes it out to be:</p>
<ul>
<li>download and unpack the SDK zip file from <a href="http://developer.android.com/sdk/index.html">http://developer.android.com/sdk/index.html</a></li>
<li>add the SDK tools directory to your path (in <code>~/.bashrc</code>):<br />
<code>export PATH=${PATH}:${HOME}/…/android-sdk-mac/tools</code></li>
<li>start <strong>Terminal</strong></li>
<li>run the &#8220;Android SDK and AVD Manager&#8221;:<br />
<code>android &amp;</code></p>
<ul>
<li>select <strong>Settings</strong> on the left
<ul>
<li> select <strong>Force https://… sources to be fetched using http://…</strong></li>
</ul>
</li>
<li>select Available Packages on the left
<ul>
<li>select the checkboxes for the various <strong>SDK Platforms</strong></li>
<li>press <strong>Install Selected</strong></li>
</ul>
</li>
</ul>
</li>
<li>make an &#8220;Android Virtual Device&#8221;:<br />
<code>android create avd --target 1 --name david</code></li>
<li>run the emulator (note: it can take minutes to boot):<br />
<code>emulator -avd david</code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://code.davidjanes.com/blog/2009/11/08/how-to-install-android-sdk-on-your-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make your blog readable on an iPhone</title>
		<link>http://code.davidjanes.com/blog/2008/11/14/how-to-make-your-blog-readable-on-an-iphone/</link>
		<comments>http://code.davidjanes.com/blog/2008/11/14/how-to-make-your-blog-readable-on-an-iphone/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 15:47:08 +0000</pubDate>
		<dc:creator>David Janes</dc:creator>
				<category><![CDATA[html / javascript]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=225</guid>
		<description><![CDATA[Here&#8217;s the following changes I made to this blog to make it readable on an iPhone
Add iPhone directives to header

the META tag informas the iPhone about how wide we want the page to look &#8211; i.e. the width of the iPhone
the LINK tag loads our iPhone specific CSS (tip from here)
this should be after your [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the following changes I made to this blog to make it readable on an iPhone</p>
<h4>Add iPhone directives to header</h4>
<ul>
<li>the META tag informas the iPhone about how wide we want the page to look &#8211; i.e. the width of the iPhone</li>
<li>the LINK tag loads our iPhone specific CSS (tip from <a href="http://iphone.wikidot.com/detection">here</a>)</li>
<li>this should be after your normal CSS LINK (or whatever) directive</li>
</ul>
<pre>&lt;meta name="viewport" content="width=320" /&gt;
&lt;link rel="stylesheet" type="text/css"
  media="only screen and (max-device-width: 480px)"
  href="/blog/wp-content/themes/davidjanes/iphone.css" /&gt;</pre>
<h4>Define iPhone specific CSS</h4>
<ul>
<li>this will obviously vary depending on what your current CSS does &#8211; that still gets loaded</li>
<li>most of this was pragmatically discovered</li>
<li>I hide several sections which I don&#8217;t think the user wants to see on an iPhone; I&#8217;ll probably play with this more</li>
<li>the PRE directive doesn&#8217;t use line breaking, so we just clip the examples, after making sure the font is small enough to get enough on a single line</li>
</ul>
<pre>body {
    padding: 5px;
    width: 480px;
}
div#content {
    float: none;
}
div#menu {
    display: none;
}
p.credit {
    display: none;
}
pre {
    overflow: hidden;
    font-size: 10px !important;
}
h1, h1 * {
    font-size: 36px;
}</pre>
<h4>What still needs to be done</h4>
<ul>
<li>we shouldn&#8217;t serve sections that users are not going to see &#8211; it&#8217;s a waste of bandwidth</li>
<li>we shouldn&#8217;t serve more than 10 articles</li>
<li>I&#8217;ll have to figure out how to do mobile browser detection on WordPress</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://code.davidjanes.com/blog/2008/11/14/how-to-make-your-blog-readable-on-an-iphone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
