<?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>Narkaleptic Thoughtless &#187; apk</title>
	<atom:link href="http://josh.mainelan.net/tag/apk/feed/" rel="self" type="application/rss+xml" />
	<link>http://josh.mainelan.net</link>
	<description>Random nonsense from the mind of Narkaleptic.</description>
	<lastBuildDate>Wed, 02 Sep 2009 18:29:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing/Updating APKs onto an Android Phone</title>
		<link>http://josh.mainelan.net/2009/06/installing-apks-onto-an-android-phone/</link>
		<comments>http://josh.mainelan.net/2009/06/installing-apks-onto-an-android-phone/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 00:32:04 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[adb]]></category>
		<category><![CDATA[apk]]></category>
		<category><![CDATA[batch file]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://josh.mainelan.net/?p=43</guid>
		<description><![CDATA[While developing for Android, I found myself installing and reinstalling various .apk files.  I use Windows 7, but this applies to Windows in general.  I created a shortcut so that I can just double-click an apk and install it.
If you have the SDK setup and working, skip ahead to step 3.

Download the Android [...]]]></description>
			<content:encoded><![CDATA[<p>While developing for <a title="Official Android Website" href="http://www.android.com/">Android</a>, I found myself installing and reinstalling various <a title="Android Glossary (.apk is the first entry)" href="http://developer.android.com/guide/appendix/glossary.html">.apk</a> files.  I use Windows 7, but this applies to Windows in general.  I created a shortcut so that I can just double-click an apk and install it.</p>
<p><span id="more-43"></span>If you have the SDK setup and working, skip ahead to step 3.</p>
<ol>
<li>Download the <a title="Android 1.5 SDK, Release 2" href="http://developer.android.com/sdk/1.5_r2/index.html">Android SDK Download</a>.</li>
<li>Install using the <a title="Android SDK Install Guide" href="http://developer.android.com/sdk/1.5_r2/installing.html">Android SDK Install Guide</a>.
<ol style="padding-left: 1em;">
<li>In summary:</li>
<li>Pick a place on your HD and extract the folder.</li>
<li>Go into Control Panel \ System \ [Advanced system settings on Sidebar] \ Advanced tab \ Environment Variables \ System variables \ PATH</li>
<li>Append a semicolon (;) followed by where you extracted it to with the tools folder.<br />
IE: Path = &#8230;;&#8230;;C:\android-sdk-1.5\tools</li>
</ol>
</li>
<li>In notepad, paste the text below and save it in that tools folder as &#8220;installapk.bat&#8221;.<br />
<strong>NOTE:</strong> Make sure, in the Save As box, that you change the &#8220;Save as type&#8221;<strong> from</strong> Text Documents <strong>to</strong> All Files.  That way you don&#8217;t get a secret .txt append on there.</li>
<li>Double-click any .apk you have lying around.</li>
<li>Click &#8220;Select a program from a list of install programs&#8221;, then OK.</li>
<li>Check &#8220;Always use the selected program to open this kind of file&#8221;</li>
<li>Click Browse and select the .bat file you created.</li>
<li>Click Open and you are done!</li>
</ol>
<p><strong>Additional tip:</strong> If you always install to the emulator, add -e directly after the &#8220;adb&#8221;.  If you always install to your device, add -d after the &#8220;adb&#8221;.</p>
<pre name="code" class="c-sharp">
@ECHO OFF
ECHO Selected: %*
ECHO.
CHOICE /c:CIR /m "Install, Reinstall or Cancel? "

IF errorlevel 3 GOTO reinstall
IF errorlevel 2 GOTO install
GOTO cancel

:install
adb install %*
GOTO done

:reinstall
adb install -r %*
GOTO done

:cancel
EXIT

:done
PAUSE</pre>
]]></content:encoded>
			<wfw:commentRss>http://josh.mainelan.net/2009/06/installing-apks-onto-an-android-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
