Prepare target
intent: This intent will be
started when user clicks on the notification which is being sent.

Intent intentTargetActivity=new
Intent();

Add the parameters
according to the requirement. Mean to say you may pass the context & class
object just like starting normal activity. Ensure if you are passing class
object, it is your application property :P

Embed target
intent into pending intent:

Create a pending
intent using target intent. Now, why this PendingIntent??? Answer is if you
wish to have a control on how your target intent being launched[like security
constraints] then you can do so using pending intents. If you have not
specified any then default target specifications will be used to launch the
target intent.