TELEPHONY_SERVICE constant not recognised in one class, but is in another
<p>This feels very much like another case of not seeing the forest for the trees.</p>

<p>I've written a small (non-extending) class for my app that, for now, only contains the one method to scrape a supplied URL and return a string. I was hoping to include the Device ID on the end of the query string, so added the following lines:</p>

<pre><code>import android.telephony.TelephonyManager;
import android.content.Context;
...
TelephonyManager m_tmgr = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
</code></pre>

<p>However, the TELEPHONY_SERVICE constant "cannot be resolved to a variable", according to Eclipse. If I copy and paste these lines into another class in the package (all the other classes are activities, at the moment, which may have something to do with it?), it all works fine.</p>

<p>What's the massively obvious thing that I'm missing?</p>
