title: How do I use a service to monitor Orientation change in Android
body: <p>I'm writing a Widget that will display a countdown timer.  I have the widget working the way I want it until I flip the phone from landscape to portrait.  My widget does not update and goes to it's initial state at start of the widget until an onupdate is called by my recurring alarm.  I would like to call an onupdate manually once the orientation changes to update my widget  I've been researching this for a while now and I've found out that I need to use a Service which will monitor the orientation changes and call my onupdate for my widget.  </p>
  
  <p>My problem is I can't find a straight answer as to how to use a service to monitor the change.  I've seen that with an activity I can add  <em>android:configChanges="orientation|keyboardHidden"</em> to the manifest for an activity and use a <em>onConfigurationChanged</em>, but can I do this for a service. If so how?  Is there a better way to monitor the orientation change?  I've also read on the internet that a service isn't the best way to do this either. </p>
  
  <p>I've seen tutorials for creating orientation listeners but they seem to use depreciated function calls.</p>
  
  <p>Thanks in Advance </p>