title: Update AppWidget from an Activity
body: <p>I'm trying to update my AppWidget from my activity.
  Similar to this question:</p>
  
  <p><a href="https://stackoverflow.com/questions/3455123/programmatically-update-widget-from-activity/14256988#14256988">Programmatically update widget from activity/service/receiver</a></p>
  
  <p>I'm using AppWidgetManager to get the ids and send an update broadcast but it doesn't work for me.</p>
  
  <p>I suspect that it's because my AppWidgetProvider is in a library project and thus under a different package than my main app.</p>
  
  <p>Any ideas on how to make it work?
  I tried all kind of contexts (this, getApplication() , etc.) , nothing worked.
  (I don't get the ids of the widgets).</p>
  
  <p>Thanks.</p>