How to refresh widget listview when button refresh is clicked?
<p>I'm creating a <code>Widget</code> with <code>ListView</code> on it. Displaying the result from the <code>Web Service</code> in the <code>ListView</code> is okay. I created a class which is my <code>WidgetService</code> that extends to <code>RemoteViewsService</code> and on <code>RemoteViewsFactory</code> I call my <code>ListViewProvider</code> that has the <code>Web Service</code>. I added a refresh button that when clicked it will call the <code>WidgetService</code> again to created the list view.  </p>

<p>Here is my code in my <code>WidgetProvider</code></p>

<pre><code>public class WidgetProvider extends AppWidgetProvider {

   @Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager,
                     int[] appWidgetIds) {
 final int N = appWidgetIds.length;
  for (int i = 0; i &lt; N; ++i) {
        RemoteViews remoteViews = updateWidgetListView(context,
                appWidgetIds[i]);
        appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds[i], R.id.listViewWidget);
        appWidgetManager.updateAppWidget(appWidgetIds[i], remoteViews);
    }
    super.onUpdate(context, appWidgetManager, appWidgetIds);
}

private RemoteViews updateWidgetListView(Context context, int appWidgetId) {

    RemoteViews remoteViews = new RemoteViews(context.getPackageName(),
            R.layout.widget_layout);

//ListView
    Intent svcIntent = new Intent(context, WidgetService.class);
    svcIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
    svcIntent.setData(Uri.parse(svcIntent.toUri(Intent.URI_INTENT_SCHEME)));
    remoteViews.setRemoteAdapter(appWidgetId, R.id.listViewWidget, svcIntent);
    remoteViews.setEmptyView(R.id.listViewWidget, R.id.empty_view);

    //REFRESH
    PendingIntent updatePendingIntent = PendingIntent.getService(context, 0, svcIntent, PendingIntent.FLAG_UPDATE_CURRENT);
    remoteViews.setOnClickPendingIntent(R.id.ivRefreshWidget, updatePendingIntent);

 return remoteViews;
}
</code></pre>

<p>As you can see in the refresh part I tried using <code>PendingIntent</code> to call the <code>WidgetService</code> but when testing it doesn't refresh the list. 
Thank you for the help in advance. </p>