Search method for pdf and text files in sdcard.

And returns the file with the absolute path to send it using socket communication.