Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Multiple Alert using DesktopNotification using background threads
posted

Hi,

I am developing an application which will provide the notification after certain events; for that I am using DesktopNotification alert. as my application get the events in background I am creating thread to handle it separately. Every thread creates an notification and show it in the taskbar.

Now my problem - when there are more than one notification arrives, it has been processed by different threads so my notification alert does not get Tiled and show in a background of previous alerts.

Is some one had a same problem; need suggestion how to implement this functionality.

Please send me suggestions asap.

Thanks

Jay

 

 

 

Parents
  • 3707
    posted

    You could use that created thread along with a global ArrayList that stores what you need to process and in the thread use a conditional while block to process and remove each item in order received. That should get them to tile since it'll be in the same instance.

Reply Children
No Data