04-25-2012 07:23 AM
You may have missed the additional lines I added to my reply above.
The process of adding and clearing a reference is a little tricky, because to clear it, you will have to give AlarmScreen() a callback to the code that creates it, but other than that, I would have thought the method I suggested should be clear.
04-25-2012 07:27 AM - edited 04-25-2012 08:05 AM
can you provide me any link how to implement a callback. and thanks again for clearing the things
yeah i was early in reply. Can you just give me the snippet what you want to say. How to keep track of the refrences and all just a code snippet or any example would be much appreciated.
04-25-2012 08:08 AM
"can you provide me any link how to implement a callback"
http://www.javaworld.com/javaworld/javatips/jw-jav
Can you use Google? ![]()
04-25-2012 08:12 AM
04-25-2012 09:25 AM
While I could elaborate more, I am not sure I want to I have two issues:
a) If I suggested something, it might not actually be the best solution to your problem overall, as I would just be showing you one way to process a call back
b) callback is one of those things that you just 'get' when you think about it. Putting it in code means you have to interpret my code before you get to the idea.
So I think the best thing is for you to think about how logically you would solve this problem, what the Alarm Screen need to ask the alarm controller and what the alarm controller needs to tell the Alarm Screen, and work out how the two can actually communicate.
So give it a go yourself.
Good luck.
05-11-2012 01:22 AM