title: How to change the image in app widget programmatically in android
body: <p>I design an android app widget in which two <code>ImageView</code> i want change the image both of the the <code>ImageView</code> when click on the image as well as call a method.
  Now i use <code>RemoteView</code>  like this </p>
  
  <pre><code>RemoteViews views1 = new RemoteViews(context.getPackageName(),
                  R.layout.activity_main);
          views1.setOnClickPendingIntent(R.id.smsImageView, pendIntent1);
          appWidgetManager.updateAppWidget(appWidgetIds, views1);
  </code></pre>
  
  <p>but i have no idea how i change the image in <code>imageView</code>
  Thanks.</p>