<?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>RemoteDroid &#187; Android</title>
	<atom:link href="http://remotedroid.net/blog/category/android/feed/" rel="self" type="application/rss+xml" />
	<link>http://remotedroid.net/blog</link>
	<description>Use your Android phone as a wireless keyboard and mouse to remote control your computer</description>
	<lastBuildDate>Wed, 08 Sep 2010 00:52:37 +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>Getting items in a ListView to show Alpha values</title>
		<link>http://remotedroid.net/blog/2010/09/07/getting-items-in-a-listview-to-show-alpha-values/</link>
		<comments>http://remotedroid.net/blog/2010/09/07/getting-items-in-a-listview-to-show-alpha-values/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 00:52:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=108</guid>
		<description><![CDATA[So I was trying to implement a ListView in Android the other day where the items would have varying levels of alpha transparency in the background. For some reason, every item&#8217;s background would go black whenever the ListView scrolled. (presumably for performance reasons.) Googling around yielded not much, but a co-worker had solved this problem [...]]]></description>
			<content:encoded><![CDATA[<p>So I was trying to implement a ListView in Android the other day where the items would have varying levels of alpha transparency in the background. For some reason, every item&#8217;s background would go black whenever the ListView scrolled. (presumably for performance reasons.) Googling around yielded not much, but a co-worker had solved this problem in a previous app. Looking through the layout file, I saw that the android:cacheColorHint was set in his layout, but not mine. Adding it solved the problem.</p>
<p>Basically, just adding android:cacheColorHint=&#8221;#00000000&#8243; to the ListView enabled transparency while scrolling.</p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2010/09/07/getting-items-in-a-listview-to-show-alpha-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android memory leaks</title>
		<link>http://remotedroid.net/blog/2010/08/13/android-memory-leaks/</link>
		<comments>http://remotedroid.net/blog/2010/08/13/android-memory-leaks/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 09:34:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=103</guid>
		<description><![CDATA[Since I&#8217;ve been banging my head against this for the last 12 hours, I thought I&#8217;d post a solution here, so other people might stumble across it and benefit.
I ran into two memory leaks in Android itself in WebView, and Typeface. Both are because of bugs in the OS, so if you&#8217;re encountering memory leaks, [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;ve been banging my head against this for the last 12 hours, I thought I&#8217;d post a solution here, so other people might stumble across it and benefit.</p>
<p>I ran into two memory leaks in Android itself in <a href="http://developer.android.com/reference/android/webkit/WebView.html">WebView</a>, and <a href="http://developer.android.com/reference/android/graphics/Typeface.html">Typeface</a>. Both are because of bugs in the OS, so if you&#8217;re encountering memory leaks, and all your code looks pretty watertight, (Meaning you never pass Activities as a Context to a View, and you use WeakReferences for static inner classes) you might be hitting one of these.</p>
<p>The first bug for WebView is described <a href="http://code.google.com/p/android/issues/detail?id=5067">here.</a></p>
<p>The solution is just to call destroy() on your webview in the onDestroy() method of the containing activity, then set any references to that WebView to null, just in case. The app I&#8217;m working on is webview heavy, so this was causing some grief.</p>
<p>The second bug for Typeface is described <a href="http://code.google.com/p/android/issues/detail?id=9904">here.</a></p>
<p>The issue was that I was creating a new Typeface from assets in the onCreate method of my activity. Every time I did this, it was allocating around 700k of memory, which then never got released. Big, big problems. The solution in this case is to initialize the typeface object in a static class (You can subclass Application and stick it there if you want, but be aware that you can&#8217;t call getAssets() before the first activity gets it&#8217;s onCreate method called.) and then use that one instance for any TextViews you may have.</p>
<p>The only way I managed to figure out what was causing the leaks was to go into adb shell, and then use dumpsys meminfo. That showed me a whole lot of bad.</p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2010/08/13/android-memory-leaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RemoteDroid controls robot remotely</title>
		<link>http://remotedroid.net/blog/2010/06/04/remotedroid-controls-robot-remotely/</link>
		<comments>http://remotedroid.net/blog/2010/06/04/remotedroid-controls-robot-remotely/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 00:52:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=101</guid>
		<description><![CDATA[
Android + Arduino wireless from Guus Baggermans on Vimeo.
Well damn!
]]></description>
			<content:encoded><![CDATA[<p><object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12298295&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=12298295&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object>
<p><a href="http://vimeo.com/12298295">Android + Arduino wireless</a> from <a href="http://vimeo.com/user940779">Guus Baggermans</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Well damn!</p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2010/06/04/remotedroid-controls-robot-remotely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RemoteDroid gets multitouch gestures</title>
		<link>http://remotedroid.net/blog/2010/03/01/remotedroid-gets-multitouch-gestures/</link>
		<comments>http://remotedroid.net/blog/2010/03/01/remotedroid-gets-multitouch-gestures/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 03:03:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=95</guid>
		<description><![CDATA[Thanks to Nicolas Frenay, RemoteDroid now has some cool multitouch gestures. You can now use two fingers to scroll, just like a macbook, as well as clicking the onscreen mouse buttons, and dragging using the touchpad, just like you always wanted. He&#8217;s using reflection to find out if your phone supports multitouch, which means that [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to Nicolas Frenay, RemoteDroid now has some cool multitouch gestures. You can now use two fingers to scroll, just like a macbook, as well as clicking the onscreen mouse buttons, and dragging using the touchpad, just like you always wanted. He&#8217;s using reflection to find out if your phone supports multitouch, which means that 1.6 devices aren&#8217;t left totally out in the cold, and I don&#8217;t have to worry about maintaining two different branches.</p>
<p>One note for Nexus One users, the Nexus One apparently has some pretty serious <a href="http://www.youtube.com/watch?v=dsSUqkh8pcI">multitouch problems</a>, making click and drag a bit wonky. I&#8217;d advise sticking to tap-to-click and hold for dragging items around.</p>
<p>Another change is that I&#8217;ve removed the trackball as mouse functionality. Now clicking the trackball acts as a CTRL key, and moving the trackball acts as a scrollwhell, making it more like <a href="http://code.google.com/p/connectbot/">ConnectBot</a>, and making the user experience a little bit more consistent.</p>
<p>Lastly, I&#8217;ve added better support for the soft keyboard. All keys, except for the ones that don&#8217;t have direct analogues on your regular keyboard now work. (long-press keys still aren&#8217;t supported) In the future, because of differing physical keyboard layouts between devices, I&#8217;m going to try to get RemoteDroid to recognize which device you&#8217;re using, and change what it sends depending on that, but for now, at least the soft keyboard should be pretty consistent.</p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2010/03/01/remotedroid-gets-multitouch-gestures/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>RemoteDroid has been open sourced</title>
		<link>http://remotedroid.net/blog/2010/01/09/remotedroid-has-been-open-sourced/</link>
		<comments>http://remotedroid.net/blog/2010/01/09/remotedroid-has-been-open-sourced/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 01:30:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=84</guid>
		<description><![CDATA[I&#8217;ve finally gotten around to open-sourcing RemoteDroid, and putting it up on Google code. You can get to it at:
http://code.google.com/p/remotedroid/
You&#8217;ll also always be able to find the latest .apk and server files there.
Part of my reason for open-sourcing it is that I&#8217;m just one person, with just one phone. Like or not, Android has already [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally gotten around to open-sourcing RemoteDroid, and putting it up on Google code. You can get to it at:</p>
<p><a href="http://code.google.com/p/remotedroid/">http://code.google.com/p/remotedroid/</a></p>
<p>You&#8217;ll also always be able to find the latest .apk and server files there.</p>
<p>Part of my reason for open-sourcing it is that I&#8217;m just one person, with just one phone. Like or not, Android has already fragmented, and will probably fragment even more in the future, so support for every Android device out there will become increasingly difficult. That&#8217;s where open-source comes in.</p>
<p>I&#8217;m looking for contributors to help debug on platforms other than the G1. There are several issues that I simply can&#8217;t fix because I have no way of replicating them. Additionally, other people might think of features that I haven&#8217;t or haven&#8217;t had time to implement. If nothing else, people might be curious about how RemoteDroid works, and open-source is a great way of dealing with these issues.</p>
<p>If you&#8217;d like to help, feel free to email me at admin@remotedroid.net, or use the feedback form.</p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2010/01/09/remotedroid-has-been-open-sourced/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Android browser caching</title>
		<link>http://remotedroid.net/blog/2009/11/13/android-browser-caching/</link>
		<comments>http://remotedroid.net/blog/2009/11/13/android-browser-caching/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 18:07:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=82</guid>
		<description><![CDATA[I just wanted to get this out there, Android&#8217;s browser caches like a madman. It completely ignores POST variables. This is particularly relevant when doing AJAX calls. You can&#8217;t simply add a timestamp to POST and expect the Android browser to give you new page data. You have to append to timestamp to the GET [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to get this out there, Android&#8217;s browser caches like a madman. It completely ignores POST variables. This is particularly relevant when doing AJAX calls. You can&#8217;t simply add a timestamp to POST and expect the Android browser to give you new page data. You have to append to timestamp to the GET query string.</p>
<p>Pragma: no-cache, and all the other server-side headers also have no effect as far as I can tell.</p>
<p>It makes sense though. Since the browser&#8217;s on a mobile network, and since they want to minimize network traffic as much as possible, caching is going to be extremely aggressive.</p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2009/11/13/android-browser-caching/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Maintaining an object through an orientation change</title>
		<link>http://remotedroid.net/blog/2009/09/28/maintaining-an-object-through-an-orientation-change/</link>
		<comments>http://remotedroid.net/blog/2009/09/28/maintaining-an-object-through-an-orientation-change/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 19:22:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=77</guid>
		<description><![CDATA[One of the head-scrathers about Android for me has been that when you open the keyboard on a device with a slide-out keyboard, the current activity is totally destroyed, then rebuilt again. I understand why it's done, since all of a sudden, you've got a new resolution, and a new set of capabilities, but I never knew how to differentiate an orientation change from an Activity being destroyed because you're going to a new Activity.]]></description>
			<content:encoded><![CDATA[<p>One of the head-scrathers about Android for me has been that when you open the keyboard on a device with a slide-out keyboard, the current activity is totally destroyed, then rebuilt again. I understand why it&#8217;s done, since all of a sudden, you&#8217;ve got a new resolution, and a new set of capabilities, but I never knew how to differentiate an orientation change from an Activity being destroyed because you&#8217;re going to a new Activity.</p>
<p>An example of this might be if you have a game thread, or some process going that you don&#8217;t want to have to shut down and restart just because you suddenly have to deal with a keyboard. The solution to this is Activity&#8217;s onRetainNonConfigurationInstance() method, as described here:</p>
<p><a href="http://android-developers.blogspot.com/2009/02/faster-screen-orientation-change.html">http://android-developers.blogspot.com/2009/02/faster-screen-orientation-change.html</a></p>
<p>Now you know!</p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2009/09/28/maintaining-an-object-through-an-orientation-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick alert, or non-modal dialog in Android</title>
		<link>http://remotedroid.net/blog/2009/08/26/quick-alert-or-non-modal-dialog-in-android/</link>
		<comments>http://remotedroid.net/blog/2009/08/26/quick-alert-or-non-modal-dialog-in-android/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 01:38:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=74</guid>
		<description><![CDATA[It&#8217;s called a Toast.
Here&#8217;s a quick little tutorial on how to use it.
quick alert tutorial
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s called a <a href="http://developer.android.com/reference/android/widget/Toast.html">Toast.</a></p>
<p>Here&#8217;s a quick little tutorial on how to use it.<br />
<a href="http://moazzam-khan.com/blog/?p=134">quick alert tutorial</a></p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2009/08/26/quick-alert-or-non-modal-dialog-in-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My essential Android apps</title>
		<link>http://remotedroid.net/blog/2009/05/08/my-essential-android-apps/</link>
		<comments>http://remotedroid.net/blog/2009/05/08/my-essential-android-apps/#comments</comments>
		<pubDate>Sat, 09 May 2009 04:21:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=69</guid>
		<description><![CDATA[A quick list of 3rd party apps that really make the Android experience for me:
OI File Manager
There are several good file browsers out there, but I like the philosophy behind this one. I prefer the directories and folders metaphor over the idea of every app keeping it&#8217;s own list of files, a la iTunes, or [...]]]></description>
			<content:encoded><![CDATA[<p>A quick list of 3rd party apps that really make the Android experience for me:</p>
<h3><a href="http://www.openintents.org/en/node/159">OI File Manager</a></h3>
<p>There are several good file browsers out there, but I like the philosophy behind this one. I prefer the directories and folders metaphor over the idea of every app keeping it&#8217;s own list of files, a la iTunes, or the iPhone&#8217;s big list o&#8217; apps home screen. This means access to the filesystem. At the moment, there isn&#8217;t a native file picker widget/view/whatever, so OpenIntents designed their file browser to provide that.</p>
<p>With that in mind, the next app is</p>
<h3><a href="http://www.cyrket.com/package/org.ouroborus.android.downloadcrutch">Download Crutch</a></h3>
<p>This just allows the Android browser to download any file type. Currently, it only downloads files that have corresponding apps. This is <a href="http://www.cyrket.com/package/org.ouroborus.android.downloadcrutch">by design</a>. Since Android doesn&#8217;t have a native file browser, if you were to download something without an app to manage it, you&#8217;d never be able to delete it. People will make new apps, and those apps will be able to deal with different files, therefore they need a way to tell the browser what the new file types are. I guess Download Crutch just tells the browser that it&#8217;ll handle everything.</p>
<h3><a href="http://www.cyrket.com/package/com.android.term">Terminal Emulator</a></h3>
<p>Because every computer needs a command line.</p>
<h3><a href="http://code.google.com/p/connectbot/">Connectbot</a></h3>
<p>An SSH program for Android. If you have a Linux box running somewhere, you can just SSH into it, then use IRC, or any command line program you want. I <i>think</i> you can even use SSH tunneling, but I&#8217;m not sure.</p>
<h3><a href="http://graha.ms/androidproxy/">Tetherbot</a></h3>
<p>It takes some configuring, and it&#8217;s really only good for browsing the web, but when I happen to have my laptop with me, and there&#8217;s no wifi available, this app is indispensable. T-Mobile isn&#8217;t keen on tethering, so this app can&#8217;t be released on the market, but lucky for us, Google lets us install whatever the heck we want on our phones. Eventually, Google will allow us to write native apps, and we&#8217;ll hopefully start to see true tethering apps, (You can already do this if you&#8217;ve rooted your phone) but until then, this app works pretty well.</p>
<p>So basically, what I really want is a very small computer that also happens to be able to make phone calls. Netbooks won&#8217;t fit in my pocket, and don&#8217;t serve as phones. The iPhone&#8217;s soft keyboard bugs me, I don&#8217;t like it&#8217;s overly managed interface, and the fact that it&#8217;s completely tied to iTunes. Windows Mobile just blows, and Palm is somewhat outdated, so we&#8217;re left with Android.</p>
<p>At it&#8217;s heart, a mobile phone is just a computer, and computers at their heart, are supposed to be able to do just about anything that you can figure out how to tell them to do. These apps aren&#8217;t everyday use programs, but they go a long way towards providing the kind of flexibility that you <i>should</i> have out of these devices.</p>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2009/05/08/my-essential-android-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running native code in Android 2</title>
		<link>http://remotedroid.net/blog/2009/04/23/running-native-code-in-android-2/</link>
		<comments>http://remotedroid.net/blog/2009/04/23/running-native-code-in-android-2/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 18:37:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://remotedroid.net/blog/?p=66</guid>
		<description><![CDATA[So, the previous method only really works for statically compiled programs, meaning it&#8217;s kinda useless for anything more complex, or for cross-compiling much of anything really.
Luckily, I found another page that details a better, though more time consuming way of doing things.
Compiling for Android
Basically, you&#8217;re downloading the Android source and compiling it to get a [...]]]></description>
			<content:encoded><![CDATA[<p>So, the previous method only really works for statically compiled programs, meaning it&#8217;s kinda useless for anything more complex, or for cross-compiling much of anything really.</p>
<p>Luckily, I found another page that details a better, though more time consuming way of doing things.</p>
<p><a href="http://android-dls.com/wiki/index.php?title=Compiling_for_Android">Compiling for Android</a></p>
<p>Basically, you&#8217;re downloading the Android source and compiling it to get a cross-compiler that links to the appropriate Android libraries, and anything else you might need.</p>
<p>CAVEATS:</p>
<ol>
<li>Compiling takes a VERY long time. Don&#8217;t start the compilation over SSH, because something bad will happen, and you&#8217;ll be forced to close the SSH session, which&#8217;ll bork everything. If you&#8217;re doing stuff remotely, VNC into your Linux box, open a terminal window there, and do what you need that way.</li>
<li>I haven&#8217;t tested this on anything other than Linux.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://remotedroid.net/blog/2009/04/23/running-native-code-in-android-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
