I want to add a method by which I can directly print report from the printer on local network.
my server which printer is connected to is 192.168.1.50
(my printer isnt Bluetooth OR Wifi one.)
I also have seen PrinterShare but it looks like it requires a client software running on a PC connected to the printer.
I wanna to do it directly to server which has printer connected and shared!
I got this code but no USE!!!
I wanna to do that in (xamarin C#)
Socket sock = new Socket("192.168.1.222", 9100);
PrintWriter oStream = new PrintWriter(sock.getOutputStream());
oStream.println("HI,test from Android Device");
catch (UnknownHostException e)
catch (IOException e)
i am trying to block call in aur application . in which i want that this application run in background while application is closed for this i am using broadcastreciver but this application cannnot work plz help me to build my apps