From the documentation, the constructor of RemoteViews
is
public RemoteViews (String packageName, int layoutId)
The documentation says that packageName
is "Name of the package that contains the layout resource".
- Why is this needed?
- Wouldn't the
layoutId
tell you everything that you need to know about the location of the layout resource? - What would you put as the package name?
- Wouldn't it always be res->layout?