Thank you Erel. Read through the accessibility service and notification listener, but still don't know how to reach what I need..
In the example of the accessibility service thread it only teaches us to automatically send a whatsapp message but not to read one. And with the notification listener it only captures the received msg (i.e. those provokes notification) but no those which the user sends out..