<?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>Jesse Peterson &#187; android</title>
	<atom:link href="http://www.jpeterson.com/tag/android/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jpeterson.com</link>
	<description>Personal ramblings of a computer geek in Iowa</description>
	<lastBuildDate>Thu, 26 Jan 2012 04:16:38 +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>Logging steps via Google Docs</title>
		<link>http://www.jpeterson.com/2011/09/15/logging-steps-via-google-docs/</link>
		<comments>http://www.jpeterson.com/2011/09/15/logging-steps-via-google-docs/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 02:38:17 +0000</pubDate>
		<dc:creator>cubeinhabitant</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[pedometer]]></category>

		<guid isPermaLink="false">http://www.jpeterson.com/?p=302</guid>
		<description><![CDATA[My employer, Pearson, provided the opportunity for its employees to participate in the 2011 Global Corporate Challenge. The GCC consisted of teams of 7 who tracked their daily steps counted with a pedometer for 16 weeks. The idea is to motivate people to become more active. The event started on May 19, 2011 and ended [...]]]></description>
			<content:encoded><![CDATA[<p>My employer, Pearson, provided the opportunity for its employees to participate in the <a href="http://gettheworldmoving.com/">2011 Global Corporate Challenge</a>. The GCC consisted of teams of 7 who tracked their daily steps counted with a pedometer for 16 weeks. The idea is to motivate people to become more active. The event started on May 19, 2011 and ended September 6, 2011. Being an engineering type of person, I liked the idea of gathering the daily step count as a metric for activity. The event suggested a goal of achieving 10,000 steps a day. I was pretty active recording my pedometer activity every morning via the SMS text message data entry technique: the GCC has an SMS short code and you entered the date and number of steps. Submitted text messages were recorded in your step log on the GCC web site. Being able to enter the data via my phone was very handy as it let me enter data while I was on vacation without missing a day. But, now that the event is over, I still wanted to keep track of my step counts. Here is the technique that I worked out using Google Docs to record my step counts.</p>
<p>I created a <a href="http://www.google.com/google-d-s/forms/">Google Docs Form</a> to collect my daily step count. The collected data is stored in a <a href="http://www.google.com/google-d-s/spreadsheets/">Google Docs Spreadsheet</a>. The form can be viewed in a web browser or in Google Docs for Android. Since I have an Android phone, the form lets me use my phone to still collect my daily step counts each morning. And since the data is stored in a spreadsheet, I can perform calculations on the data to get my total and average step counts and even graph my daily totals. Here is the process that I use.</p>
<p><span id="more-302"></span>I first created the form. From Google Docs, I selected &#8220;Create new&#8221; &gt; &#8220;Form&#8221;. This opened the form editor. I entered the form title of &#8220;Step Entry&#8221; and description of &#8220;Daily step count entry&#8221;. My form currently has two questions; &#8220;Date&#8221; and &#8220;Steps&#8221;. The first question, &#8220;Date&#8221;, has help text of &#8220;Date steps were accumulated&#8221;, it is a &#8220;Text&#8221; question type, and the question is required.</p>
<div id="attachment_308" class="wp-caption alignnone" style="width: 310px"><a href="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntry-EditForm-Date.png"><img class="size-medium wp-image-308" title="StepEntry-EditForm-Date" src="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntry-EditForm-Date-300x205.png" alt="" width="300" height="205" /></a><p class="wp-caption-text">Step Entry - Edit Form - Date Question</p></div>
<p>The second question, &#8220;Steps&#8221;, has help text of &#8220;Number of steps accumulated&#8221;, it is a &#8220;Text&#8221; question type, and the question is required.</p>
<div id="attachment_310" class="wp-caption alignnone" style="width: 310px"><a href="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntry-EditForm-Steps.png"><img class="size-medium wp-image-310" title="StepEntry-EditForm-Steps" src="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntry-EditForm-Steps-300x170.png" alt="" width="300" height="170" /></a><p class="wp-caption-text">Step Entry - Edit Form - Steps Question</p></div>
<p>Once this form is saved and created, it is linked to a spreadsheet. I renamed the sheet &#8220;Data&#8221;.</p>
<div id="attachment_311" class="wp-caption alignnone" style="width: 310px"><a href="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntry-Data.png"><img class="size-medium wp-image-311" title="StepEntry-Data" src="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntry-Data-300x296.png" alt="" width="300" height="296" /></a><p class="wp-caption-text">Step Entry - Data Sheet</p></div>
<p>I created a new sheet and named it &#8220;Statistics&#8221;.</p>
<div id="attachment_312" class="wp-caption alignnone" style="width: 310px"><a href="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntry-Statistics.png"><img class="size-medium wp-image-312" title="StepEntry-Statistics" src="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntry-Statistics-300x296.png" alt="" width="300" height="296" /></a><p class="wp-caption-text">Step Entry - Statistics Sheet</p></div>
<p>On the &#8220;Statistics&#8221; sheet, I added the &#8220;Total Step Count&#8221;, &#8220;Daily Average&#8221;, and a time line trend chart.</p>
<p>For the &#8220;Total Step Count&#8221;, the formula used was pretty simple: <code>=sum(Data!C2:C109)</code>. Basically, the &#8220;Steps&#8221; column in the &#8220;Data&#8221; sheet are summed together.</p>
<p>For the &#8220;Daily Average&#8221;, the formula is a little more complex: <code>=sum(Data!C2:C109)/countif(Data!C2:C109,"&gt;0")</code>. First, the &#8220;Steps&#8221; column is summed and then divided by the number of &#8220;Steps&#8221; cells that have a number greater than zero. There is an &#8220;AVERAGE&#8221; function, but it would include cells that are zero (or don&#8217;t have a step entry). I found the technique to calculate the correct average from this web page: <a href="http://www.ozgrid.com/Excel/average-without-zero.htm">Excel Average Formula/Function Without Including Zeros</a>.</p>
<p>The chart is a time line trend chart. The &#8220;Data&#8221; used for the chart was: <code>Data!B2:B109, Data!C2:C109</code>.</p>
<p>As new steps are entered, the statistics are kept up to date.</p>
<p>At this point, the web portion of the technique is complete. But I wanted to be able to add data through my mobile phone. My phone is an Android phone and I could use the <a href="https://market.android.com/details?id=com.google.android.apps.docs&amp;hl=en">Google Docs for Android app</a> to directly edit the spreadsheet. But using the Step Entry form can provide a more &#8220;app-like&#8221; experience. I got the Step Entry form URL by selecting &#8220;Form&#8221; &gt; &#8220;Embed form in a webpage&#8230;&#8221;. A new window was opened with a dialog that had the URL to paste into a &#8220;blog or website&#8221;. I copied the whole &#8220;<code>iframe</code>&#8221; code and pasted it into a text editor: <code>&lt;iframe src="https://docs.google.com/spreadsheet/embeddedform?formkey=foo" width="760" height="623" frameborder="0" marginheight="0" marginwidth="0"&gt;Loading...&lt;/iframe&gt;</code>. I copied the &#8220;<code>src</code>&#8221; attribute value, <code>https://docs.google.com/spreadsheet/embeddedform?formkey=foo</code>, and pasted it into a new Chrome window. I then used <a href="https://market.android.com/details?id=com.google.android.apps.chrometophone">Chrome to Phone</a> to send the form URL to my phone. The URL opened on my phone in the browser. I bookmarked the URL. Then I added the bookmark as a shortcut on one of the phone&#8217;s home screens. To do this, I &#8220;long held&#8221; my finger on the home screen and the &#8220;Add to Home screen&#8221; dialog was displayed. I selected the &#8220;Shortcuts&#8221; option. From the &#8220;Select shortcut&#8221; dialog I selected &#8220;Bookmark&#8221; option. I then selected the &#8220;Step Entry&#8221; bookmark that I had previously created.</p>
<div id="attachment_319" class="wp-caption alignnone" style="width: 178px"><a href="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntryDesktopLink.png"><img class="size-medium wp-image-319" title="StepEntryHomeScreenShortcut" src="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntryDesktopLink-168x300.png" alt="" width="168" height="300" /></a><p class="wp-caption-text">Step Entry home screen shortcut</p></div>
<p>Now, when I want to enter my daily step entry, I select the &#8220;Step Entry&#8221; shortcut. The first time I select the bookmark a dialog allowing me to complete the action using &#8220;Browser&#8221; or &#8220;Docs&#8221; is displayed. I can optionally choose to select the checkmark to use my selection by default.</p>
<div id="attachment_321" class="wp-caption alignnone" style="width: 178px"><a href="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntryCompleteActionChoice.png"><img class="size-medium wp-image-321" title="StepEntryCompleteActionChoice" src="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntryCompleteActionChoice-168x300.png" alt="" width="168" height="300" /></a><p class="wp-caption-text">Complete Step Entry bookmark action</p></div>
<p>I used the &#8220;iframe&#8221; URL for the &#8220;embeddedform&#8221; so that there is no extra formatting. Since I am using the form on my phone&#8217;s smaller screen, not having the extra formatting actually makes the form easier to use. I also like the layout of the form when opened in Docs better than the Browser so I choose to complete the action using &#8220;Docs&#8221;. Here is the Step Entry form that I can use to enter my daily step total.</p>
<div id="attachment_323" class="wp-caption alignnone" style="width: 178px"><a href="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntryForm.png"><img class="size-medium wp-image-323" title="StepEntryForm" src="http://www.jpeterson.com/wordpress/wp-content/uploads/2011/09/StepEntryForm-168x300.png" alt="" width="168" height="300" /></a><p class="wp-caption-text">Step Entry data entry form</p></div>
<p>I enter the date, total number of steps from my pedometer, and then press &#8220;Submit&#8221;. The data is uploaded to the Google Doc spreadsheet.</p>
<p>This process is very convenient and easy to do. It allows me to continue tracking my progress. Entering the steps daily also helps keep me motivated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jpeterson.com/2011/09/15/logging-steps-via-google-docs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First post using WordPress for Android</title>
		<link>http://www.jpeterson.com/2010/02/03/first-post-using-wordpress-for-android/</link>
		<comments>http://www.jpeterson.com/2010/02/03/first-post-using-wordpress-for-android/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 17:01:12 +0000</pubDate>
		<dc:creator>cubeinhabitant</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.jpeterson.com/2010/02/03/first-post-using-wordpress-for-android/</guid>
		<description><![CDATA[This post was created on Droid phone using WordPress for Android. You can find more details about the app at http://android.wordpress.org/.
]]></description>
			<content:encoded><![CDATA[<p>This post was created on Droid phone using WordPress for Android. You can find more details about the app at <a href="http://android.wordpress.org/">http://android.wordpress.org/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jpeterson.com/2010/02/03/first-post-using-wordpress-for-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello, Android</title>
		<link>http://www.jpeterson.com/2008/07/13/hello-android/</link>
		<comments>http://www.jpeterson.com/2008/07/13/hello-android/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 01:47:14 +0000</pubDate>
		<dc:creator>cubeinhabitant</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://www.jpeterson.com/2008/07/13/hello-android/</guid>
		<description><![CDATA[So, July 11, 2008, came and went. What happened on July 11? The iPhone 3G came out.
But I don&#8217;t have an iPhone. The other big thing is that the Apple iPhone App Store opened. But I don&#8217;t have a Mac, so I can&#8217;t run the emulator or create my own apps for the emulator.
So, I [...]]]></description>
			<content:encoded><![CDATA[<p>So, July 11, 2008, came and went. What happened on July 11? The <a href="http://store.apple.com/us/browse/home/shop_iphone/family/iphone?mco=MTE2NTQ">iPhone 3G</a> came out.</p>
<p>But I don&#8217;t have an iPhone. The other big thing is that the Apple iPhone App Store opened. But I don&#8217;t have a Mac, so I can&#8217;t run the emulator or create my own apps for the emulator.</p>
<p>So, I celebrated by creating my first <a href="http://code.google.com/android/">Android</a> app.</p>
<p><img src="http://www.jpeterson.com/wordpress/wp-content/uploads/2008/07/helloandroid.png" alt="Hello, Android" /></p>
<p>This is the &#8220;Hello, World&#8221; version of an Android app running in the emulator. It was very easy to make. What made it easier for me is that Android apps are written in <a href="http://www.java.com/en/">Java</a>. (I am a Java developer by day.) The &#8220;<a href="http://code.google.com/android/intro/index.html">Getting Started</a>&#8221; tutorial even shows you how to use <a href="http://www.eclipse.org/">Eclipse</a>.</p>
<p>I have only created the sample app so far, but it looks pretty easy for a Java developer to write an &#8220;<a href="http://code.google.com/android/intro/anatomy.html">Activity</a>&#8220;. But, of coarse, the apps currently can only run in the emulator. But the emulator can be integrated very easily into Eclipse.</p>
<p>Though, it is not like having real hardware like the Apple iPhone. <img src='http://www.jpeterson.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jpeterson.com/2008/07/13/hello-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

