The application: long running file copy. I'd like an explicit cancel button on the ongoing notification that displays progress for the copy.
The problem: I have a remote view. I've put a button on it. I get the contentIntent fires; but notification.contentview.setOnClickPendingIntent never fires. I've called notification.contentView.setOnClickPendingIntent(R.id.status_cancel,cancelIntent); but when I click on the cancel button, the contentIntent for the notification fires instead. The contentview onClick intent never fires. It's fairly apparent in the UI that the notification clicks rather than the button. Things I may have done wrong: both PendingIntents are intents that call back into my service. One with a "CANCEL" action, and one (the contentIntent) with an "IGNORE" action. If I don't set a contentIntent, mNotificationManager.notify throws an invalid argument exception. I"m sure I've this done somewhere. Am I missing something obvious? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en