The first thing that gets called in my app after I click on the notification is onPause(), so that's the first place I put a breakpoint in to have a poke around. Unless I put breakpoints in the Android source code, I don't think I can find where it goes missing.
On Jan 14, 2:16 pm, moazzamk <moazz...@gmail.com> wrote: > May you should try printing the contents of extras before it goes to > onPause(). It is possible that "extras" exists but it's empty. > > - Moazzamhttp://moazzam-khan.com > > On Jan 13, 7:09 pm, Al <alcapw...@googlemail.com> wrote: > > > Not yet :( I've tried putting the data in my intent in different ways, > > none of them helped. > > > On Jan 8, 4:28 pm, Gothy <dmitry.ut...@gmail.com> wrote: > > > > Haven't you found solution for this issue? > > > > On Dec 26 2008, 9:24 pm, Al <alcapw...@googlemail.com> wrote: > > > > > Not that I know of. I also tried using a Bundle instead, still no > > > > luck. > > > > > On Dec 25, 5:46 am, JS <yevm...@gmail.com> wrote: > > > > > > is there a way to see the actual extras from the logcat? > > > > > > On Dec 24, 3:55 pm, Al <alcapw...@googlemail.com> wrote: > > > > > > > Does anyone know? I'm really stuck on this. The logcat output says > > > > > > 'has extras', but the extras are non existent by the time it reaches > > > > > > onPause(). > > > > > > > On Dec 20, 8:51 pm, Al <alcapw...@googlemail.com> wrote: > > > > > > > > I'm trying to make a notification so when I click it, it jumps to > > > > > > > a > > > > > > > specific view inside my app. The problem I'm having is when I try > > > > > > > to > > > > > > > retrieve 'extra' data, it all shows up as null. > > > > > > > I'm constructing the notification like this (from inside a > > > > > > > Handler): > > > > > > > > Notification notif = new Notification(R.drawable.icon, "ticker", > > > > > > > System.currentTimeMillis()); > > > > > > > > Intent hilight = new Intent(AndroidIRC.this, AndroidIRC.class); > > > > > > > hilight.putExtra("net.androidirc.androidirc.window", window); > > > > > > > hilight.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > > > > > > > > PendingIntent contentIntent = PendingIntent.getActivity > > > > > > > (AndroidIRC.this, 0, > > > > > > > hilight, 0); > > > > > > > notif.flags = Notification.FLAG_AUTO_CANCEL; > > > > > > > notif.setLatestEventInfo(AndroidIRC.this, "contentTitle", > > > > > > > "contentText", contentIntent); > > > > > > > > > > > > > > mNm.notify(AndroidIRC.this.mRequestCode, notif); > > > > > > > > The notification shows up fine and when I select it, onPause is > > > > > > > called > > > > > > > followed by onResume. I used the debugger to inspect the Intent > > > > > > > gotten > > > > > > > using getIntent() and every time the data is null. Strangely > > > > > > > enough, > > > > > > > the logcat output shows this: > > > > > > > starting activity: {...... (has extras) } > > > > > > > but the extras don't appear to exist. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---