android - Can an appwidget onClick PendingIntent be set from any class? if so, How -
i have appwidget , want set onclick pending intent. pendingintent set updateservice class, not widgetprovider class. i've unsuccessfully tried in same way widgetprovider class.
edit 2: issue caused me post question turned out unrelated. having confirmation possible it, kept trying , found problem caused onclick appwidget layout item being obscured higher layers in appwidget layout.
(edit 1 removed code irrelevant.)
step #1: have updateservice
obtain instance of appwidgetmanager
, via the static getinstance()
method.
step #2: call updateappwidget()
on appwidgetmanager
.
Comments
Post a Comment