How to obtain an instance of ServiceState?
<p>I'm trying to obtain an instance of <code>ServiceState</code> in my <code>Activity</code>. But how am I supposed to do this? There is no static method to obtain an instance or any method on any service that returns an <code>ServiceState</code> instance.<br>
There is the <code>TelephonyManager.listen()</code> call. But I want to get the <code>ServiceState</code> instance when I want, not when Android calls my listener because something changed.  </p>

<p>The documentation of <code>ServiceState</code> can be found here: <a href="http://developer.android.com/reference/android/telephony/ServiceState.html" rel="nofollow">http://developer.android.com/reference/android/telephony/ServiceState.html</a></p>
