android - Single Configuration Activity for multiple Homescreen Widgets -


i have 1 configuration activity different hoomescreen widgets android app.

i widgetid in configuration activity this:

widgetid = extras.getint(        appwidgetmanager.extra_appwidget_id,         appwidgetmanager.invalid_appwidget_id); 

but later in code want know widgetprovider class has called configuration activity. how can this?

p.s.

i've found answer:

appwidgetmanager appwidgetmanager = appwidgetmanager.getinstance(context); appwidgetproviderinfo appwidgetmanager.getappwidgetinfo(widgetid); 


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -