title: Update app widget on click in android
body: <p>I am working on Android Widget my widget is like following diagram,
  <strong>[prev]</strong> <em>event name</em> <strong>[next]</strong></p>
  
  <p>prev, next are the buttons on the widget.So i want to update the event name on click of next and prev button.On start of the service i loaded the data and stored it in array list. Now i want to iterate through the array list by clicking the next and prev buttons on the widget.</p>
  
  <p>So how can i achieve this.Please help me with proper solution.
  Here is my xml layout</p>
  
  <pre><code>&lt;LinearLayout
      android:id="@+id/lytWidget2"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="5dip"
      android:orientation="horizontal" &gt;
  
      &lt;Button
          android:id="@+id/btnPreviousView"
          android:layout_width="43dp"
          android:layout_height="fill_parent"
          android:layout_gravity="left|center"
          android:background="@drawable/ic_leftarrow"
          android:padding="5dip" /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="52dp"
          android:layout_weight="0.97"
          android:text="Event Name" /&gt;
  
      &lt;Button
          android:id="@+id/btnNextView"
          android:layout_width="43dp"
          android:layout_height="fill_parent"
          android:layout_gravity="right|center_vertical"
          android:background="@drawable/ic_rightarrow"
          android:padding="5dip" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>