In Android, how to start an activity of application B when user click on notification from application A?
===

I have searched online for answer, but all I got was how to start an activity inside application A when clicking on A's notification. The problem is, to start activities of B, I will need the Context of B to pass it to the PendingIntent for the notification of A, but I cannot get the Context of B in A.

Is there any way to do so, or am I supposed to do something else to start app B other than use PendingIntent.getActivity() method?