WorkItOut 1.2 Available on Marketplace

April 7, 2009

New Features

  • Home Page
  • Chart Progress (via Google Charts)
  • FitFiend.com Tips
  • Negative/half-weights (added decimal on number pad)

Let me know if you find any bugs.



March 31, 2009

Originally I had hoped that users would not want to deal with the keyboard when in the gym, so I came up with a simple number pad to enter the workout data.  If the user wanted to open the keyboard the proportion of the screen made it so that the number pad was unreachable.  First fatal mistake – since the save button was on the number pad.  Anyway….WorkItOut 1.1 fixed that.

The goal in 1.1 was to show the number pad in portrait mode and hide the number pad in landscape mode when the keyboard slides out.

Here are the steps to achieve this:

1)  Go to the AndroidManifest

For the activity add android:configChanges=”keyboardHidden|orientation”

This allows the application to handle orientation changes and makes it so the app does not restart the activity on an orientation change.  I use it for the charts also so that the app doesn’t have to ping the Google Charts site every time you change screen orientation.

2)  Use onConfigurationChanged(Configuration change)

So now that the app is controlling the configuration changes, you have to set the behavior.  I just use an if statement with change.orientation == Configuration.ORIENTATION_LANDSCAPE

If it’s landscape hide the numpad, otherwise display it.

3)  Use getWindowManager().getDefaultDisplay().getMetrics(dm)

onConfigurationChanged only comes into play when you switch from one view to another within the activity.  But what if you enter the activity in landscape mode.  For that I used the WindowManager to get the screen dimension.  If dm.heightpixels==320 then I know I am in landscape mode.

So these steps cover all the bases for sliding the keyboard open or closing it.  Obviously there is more complexity if you want to use the accelerometer to determine which orientation the screen is currently in.


Google Charts Available End of March

March 17, 2009

Many users have asked for the ability to chart progress.  Luckily for the Google phone (and any web-enabled phone), we have the Google Charts API which magically much easier to use than I expected.  The tricky part was the data scaling especially since we are working with dates.  For example,  I worked out consistently for a couple of weeks and then skipped a month, I wouldn’t want the data to be displayed in equal intervals.  So how do you take dates and figure out the relative distance between them?  In this case I just converted everything to milliseconds which is pretty standard.  Although at first I tried to come up with my own way to convert dates to a number format which obviously didn’t end up working.  I have posted a link below and the chart.  Notice how the url contains all the information needed to create the chart, pretty nifty and its fast too!

Here’s a sample





February 26, 2009

My full time job is as a project manager coordinating the development of an Android app.  I thought it would be neat to give myself a small project to learn more about the Android API and better understand what goes through the minds of the developers.  I am not a coder by any means, but creating something from scratch and having (or attempting to have) full control over it has been fascinating.

I decided to write this app mostly for myself, in the past I have used the notepad app on my sidekick, blackberry, G1 to keep track of only my most current weights for each exercise.  But this really didn’t give me the ability to see how far I’d come nor was it a motivation factor. 

I released the app on the marketplace just for kicks.  So far the app has over 6000 users and almost 20000 downloads.  I have received emails and suggestions from all over which have me very excited about the many possibilities and directions this little app could go. 

I am also new to the blogging world, so this is my attempt at sharing my experiences to whoever is out there reading.


WorkItOut 1.1 Posted to Google Marketplace

February 2, 2009

New Functions

  • Update/Upgrade Notifier
  • Notes field
  • Quick add list for over 30 common exercises
  • Save function on menu (not just on the number pad)
  • Show/hide number pad
  • Set date for workouts
  • Choose number of sets ( 1-8 )
  • No more default 0’s displayed on a new exercise
  • Data saved when switching screen orientation

Update for end of January

January 7, 2009

Thanks to everyone who has emailed and posted comments, hoping to get an update out by the end of the month which will include:


  • Notes field
  • Quick add list for exercises
  • Scrollable window in landscape mode (access to the number pad to get past that pesky force close)
  • Variable number of sets from 1-8 displayed vertically instead of horizontally


  • No more default 0’s displayed on a new exercise
  • Data not saved when switching screen orientation
  • Force close when data field is empty

WorkItOut Run Through

December 17, 2008