They are not related at all. Both are called "Providers" but they provide different things.
App widgets are always implemented by a class which extends AppWidgetProvider
. Read about this class here.
Content providers do something completely different. Quoting from the official documentation:
Content providers manage access to a structured set of data.
The WeatherListWidget example uses both, but each does something different: The WeatherDataProvider
is a ContentProvider
which provides the weather data, and the WeatherWidgetProvider
is an AppWidgetProvider
which defines the widget itself: