1

android use asmack Transfer file,but the file content is empty

view story
linux-howto

http://stackoverflow.com – my code IncomingFileTransfer transfer = request.accept(); ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(conn); if (sdm == null){ sdm = new ServiceDiscoveryManager(conn); sdm.addFeature("http://jabber.org/protocol/disco#info"); sdm.addFeature("http://jabber.org/protocol/disco#item"); sdm.addFeature("jabber:iq:privacy"); } final FileTransferManager managerListner = new FileTransferManager(conn); FileTransferNegotiator.setServiceEnabled(conn, true); // FileTransferNegotiator.IBB_ONLY = false; managerListner.addFileTransferListener(new FileTransferListe (HowTos)