Multiple Notification Problem

Put your problem here if it does not fit any of the other categories.

Multiple Notification Problem

Postby Paranoid » Tue Mar 10, 2009 4:41 pm

Ok I have 3 emulator instances, say, A, B and C.

When A receives a message from either B or C a notification is shown.

So if A receives a message from both B and C then there will be two notificaitons on the pull down list.

When A clicks on one of these notifications a new activity is started which displays the message that was sent.

The problem is that when the new activity is started it shows the message of the notification which was received 1st.

For example if B sends message "hello" and then C sends message "goodbye", even if the user clicks on the notification to display the "goodbye" message from C, the "hello" message from B shows up.

I was wondering then how this problem can be solved?

I believe it may have something to do with the Intent that is being passed to start the new Activity.

Thanks

P.
Paranoid
Junior Developer
Junior Developer
 
Posts: 23
Joined: Sun Oct 19, 2008 5:10 pm

Top

Postby Paranoid » Tue Mar 10, 2009 6:13 pm

Ok I'm now thinking it would be best for the notification to just show up a list containing the new messages, and then for the user to select from this list.

I would be happy to hear if anyone has a solution to the problem above however.
Paranoid
Junior Developer
Junior Developer
 
Posts: 23
Joined: Sun Oct 19, 2008 5:10 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests