title: How to call a procedure in main activity when a widget is clicked?
body: <p>i have an activity (MainForm.java) that have procedure for showing toast..
  here's the code:</p>
  
  <pre><code>package com.application.TestingWidget3;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.Toast;
  
  public class MainForm extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          onlyToast();
      }
  
      public void onlyToast()
      {
          Toast.makeText(this, "Only Showing Toast", 1).show();
      }
  }
  </code></pre>
  
  <p>what should i do on my HelloWidget.java for call the onlyToast() procedure when the widget is clicked once??</p>
  
  <p>here'e my HelloWidget code:</p>
  
  <pre><code>package com.application.TestingWidget3;
  import android.appwidget.AppWidgetProvider;
  
  public class HelloWidget extends AppWidgetProvider {
      // What should i do here??
  }
  </code></pre>
  
  <p>really need your help.. thanks..</p>