Managing an Activity with many states
<p>I have an activity that has possibly many different states.  </p>

<p><strong>For example</strong></p>

<ul>
<li>no internet </li>
<li>no license </li>
<li>logged in </li>
<li>not logged in </li>
<li>pending </li>
<li>error </li>
<li>restricted</li>
<li>deprecated</li>
</ul>

<p>At the moment I have <code>if statements</code> that determine the appropriate state of the application and enable or disable views as required.  I was thinking that some sore of STATE pattern might be better.</p>

<p>Can someone give me some idea of how I might do this with an Activity like this?  Or in this case is an if statement like this a better option as the views are tightly coupled to the Activity anyway.</p>
