I do it like this:
RemoteViews views = new RemoteViews(..); views.setOnClickPendingIntent(R.id.button1,pd); noti.contentviews = views;
and
You cannot put interactive widgets, like a Button, in a Notification and get user input from them. These are for output display only.
Button
Notification