your solution does not really work
it looks like you did not understand, how the contains block works
also you are ignoring the json result, which is returned from the notification listener completely
what about trying the suggestion I posted earlier?
And concerning itoo, read the complete itoo thread, try the simple examples, try the batterychecker tutorial and after you got some experience, then continue with your project in the background
Taifun