title: How to extend multiple Android activities
body: <p>Say someone wants an <code>Activity</code> which both has an action bar and a preference, the first idea in mind is probably</p>
  
  <pre><code>public class MyActivity extends ActionBarActivity, PreferenceActivity
  </code></pre>
  
  <p>But Java doesn't allow this. I know API 11+ Activities has actionbar builtin. It's just an example of wondering how to use multiple features from multiple base classes. </p>
  
  <p>EDIT: Based on the feedback it seems we have to hack in this case. IMHO it could be as simple as putting all activity utilities as fields in class <code>Activity</code> and implement getter/setter to use those utilities. Well, in reality, it isn't.</p>