Handle three buttons click event in custom notification in android
问题 I have a custom notification with three buttons ("ok", "cancel", "later") I can catch click event only when there is one button, but with the three buttons i can't know which button of them is clicked. My question is "How to know which button is clicked?" // I use this code in My "createNotification" function to add event to buttons Intent intent = new Intent(Context.NOTIFICATION_SERVICE); PendingIntent pendinghomeIntent = PendingIntent.getBroadcast(getBaseContext(), 0, intent, 0);