Handling back and home button differently
<p>I've got an app with two screens, we can call them List and Details.</p>

<p>If an user is at Details and presses Home to minimize the app and then switches back I want to stay in the view and just restore, but if he presses Back I want to go back to List, I figure I can save a "Done"-button this way. But...what's the proper way to do this?</p>

<p>Currently I've overriden onPause and onSaveInstance but it seems they're both called in both cases.</p>

<p>I'm thinking about overriding onKeyDown instead, like he did; <a href="http://stackoverflow.com/questions/3623704/how-to-control-activity-flow-back-button-versus-home-button">How to control Activity flow - Back button versus Home button</a>, but that doesn't seem like a "nice" way to do it so I thought I'd check if anybody else has another idea.</p>
