Code example for PendingIntent

Methods: send

0
                       srcRect.bottom = srcRect.top + v.getHeight();
 
                       final Intent intent = new Intent();
                       intent.setSourceBounds(srcRect);
                       try { 
                       	pendingIntent.send(v.getContext(), 0, intent, null, null);
                       } catch (PendingIntent.CanceledException e) {
                           android.util.Log.e("SetOnClickPendingIntent", "Cannot send pending intent: ", e);
                       } 
                   } 
               }; 
               target.setOnClickListener(listener);
           } 
       } 
               
       int viewId;
       PendingIntent pendingIntent;
 
       public final static int TAG = 1;
   } 
Connect your IDE to all the code out there  Get Codota for Java