The documentation for TaskStackBuilder says that it behaves differently on pre- and post-3.0 Android. I haven't used it for a pending intent, so I'm not sure what to expect with that.
Try completely removing the three lines with the stack builder, and change your pending intent line to this:
PendingIntent pending_intent = PendingIntent.getActivity(getBaseContext(),
0, result_intent, PendingIntent.FLAG_UPDATE_CURRENT);