getSystemService() is a method specified in android.content.Context. You can call it only on some concrete extension of Context. In your example, you're calling it on this (an instance of GeIMEIID), which is not a concrete extension of Context.
You can call it on, for example, an Activity because Activity is a concrete subclass of Context.
|