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

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -