This is very similar to another case of lack of forest for trees.
I wrote a small (non-expandable) class for my application, which at the moment contains only one method to clear the provided URL and return the string. I was hoping to include the device identifier at the end of the query string, so I added the following lines:
import android.telephony.TelephonyManager;
import android.content.Context;
...
TelephonyManager m_tmgr = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
However, the constant TELEPHONY_SERVICE "cannot be resolved by a variable", according to Eclipse. If I copy and paste these lines into another class in the package (all the other classes are actions at the moment that may have something to do with this?), Everything works fine.
What is the obvious thing I'm missing?
source
share