I'm sure that this is a basic question that must have been answered a
100 times but I googled to no avail.  Maybe I am going about this the
wrong way.

I am creating a class that is not an Activity or a Service.  I need that
class to be able to get a hold of, for example, the Location Manager.
If I had a context I would call

   (LocationManger)context.getSystemService(...)

How do I obtain a context in this situation?

I would prefer not passing in the context to the class constructor.  Am
I fundamentally misunderstanding this environment?

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to