Sending a variable to a widget
<p>I'm trying to send a variable from my main activity to a widget. I can do this by changing:</p>

<pre><code>public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)
</code></pre>

<p>to</p>

<pre><code>public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds, String mValue)
</code></pre>

<p>And adding the variable when I call onUpdate in my main activity. However this seems to break the functionality of items in the widget. Is there a better way?</p>
