Which of the below components will be mostly used when writing or implementing an app widget provider class?
i & ii
i, ii, & iii
AppWidgetManager : is the class used to update the widget.
Remoteview : is a view which can be displayed in other process.
When we create a widget, finally we will host that widget in home scree application (not our application). Since widget view will be in different application, to update those views we have to use the concept of RemoteViews.
Pending Intent : use it when you want to perform some intent operation at later point of time.
Since we don't know when user may click on our widget, we have to write a pending intent which will be triggered on clicking that widget to start our application activity.
Mostly when we are writing a widget, we will be using all the above components.
Back To Top