Ramesh Turi Ramesh Turi - 1 year ago 114
Android Question

wifi printing in android

I want to print file using wifi printing in my android application.I have scanned wifi printer and i am having wifi printer IP address . Now how can i transfer file from android phone to printer to print it ? I am using following code to transfer file to printer `public void uploadFile(File fileName){

FTPClient client = new FTPClient();
try {
client.login(FTP_USER, FTP_PASS);
client.upload(fileName, new MyTransferListener());
} catch (Exception e) {
try {
} catch (Exception e2) {


Can anybody help me ? Thanks in advance.

Answer Source

I think you can might do it without sending whole file, just pick the Strings from the file and make connection with the wifi device, send the text to the device, it will print it. I have done same thing with the bluetooth printer.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download