views:

71

answers:

1

In an activity it's (usually) easy to get the Context.

What if I am working with a home widget class? These are classes that extends AppWidgetProvider, which don't contain a Context!

Thank you.

+4  A: 

An instance of Context is passed to all the methods in AppWidgetProvider for you to use.

mbaird
You are right. Thank you...!
daliz
Feel free to mark my answer as accepted :)
mbaird