title: How to pass parameter from widget to activity when I click on widget
body: <p>How to pass parameter to activity from widget from screen ? I have widget on screen and code like this </p>
  
  <pre><code>            Intent defineIntent2 = new Intent(context, LOG.class);
              defineIntent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
                      | Intent.FLAG_ACTIVITY_CLEAR_TOP);
              defineIntent2.putExtra("id", id);
              PendingIntent pendingIntent2 = PendingIntent
                      .getActivity(context, 0 /* no requestCode */,
                              defineIntent2, 0 /* no flags */);
              remoteViews
                      .setOnClickPendingIntent(R.id.widget, pendingIntent2);
  </code></pre>
  
  <p>but when I click on widget and enter at LOG activity and try to read that parameter I have passed ( id) </p>
  
  <pre><code>int id = getIntent().getIntExtra("id",
                  -1);
  </code></pre>
  
  <p>I always get -1. How to pass parameter from widget to activity ?</p>