title: Digital clock is not changing time
body: <p>I am developing one Digital Clock Widget. I wrote the code. But it is not updating the time. I am not using any service and running in simulator. My code is like below:</p>
  
  <pre><code>     public class ExampleAppWidgetProvider extends AppWidgetProvider 
  {
      DateFormat df = new SimpleDateFormat("hh:mm:ss");
      @Override
      public void onUpdate(Context context, AppWidgetManager appWidgetManager,int[] appWidgetIds) 
      {
          final int NUM = appWidgetIds.length;
          for(int i =0; i&lt;NUM; i++)
          {
              int appWidgetId = appWidgetIds[i];
                  RemoteViews remoteview = new RemoteViews(context.getPackageName(), R.layout.widget1);
  //          remoteview.setOnClickPendingIntent(R.id.button, pending);
              remoteview.setTextViewText(R.id.Time_text, df.format(new Date()));
              appWidgetManager.updateAppWidget(appWidgetId, remoteview);
          }
      }
  </code></pre>
  
  <p>My widget_layout.xml is below:</p>
  
  <pre><code> &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" 
      android:gravity="center"
      android:layout_margin="4dp"
      android:background="@drawable/widgetstyle"
   &gt;
  &lt;TextView 
      android:id="@+id/Time_text" 
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textStyle="bold"
   /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Can anyone help?? </p>