Where can i find an example which shows how to read text message from the inbox.

I am making an app that will trigger based on what text message is recieved.

Thanks in advance