I need to write the program to logg off the system.
And this program should be run in Back grouond and should give popup like Unsaved data will be lost .
Do you want to continue or not?
if user presses YES it has to be terminated if no it still remains same screen.
But program should be run in back ground because we will set the time to logoff.
I am not getting popup when I run back goround.
Please give solution.