I am developing an application in which from my mobile I am sending files to the WiFi printer by IP address and port number, which are .txt, .png, .jpg, .doc. They should be
I know it is a bit old question. Android 4.4 provides you this functionality.
Please check these instructions