powered by Jive Software

Recieve Files in Android using asmack

Hi I am trying to recive a file using the asmack jar. I am able to recieve text on my android device with no problem but when I set up the file transfer I get an error saying that “does not support file transfers”. I set up my listner like this:



// this.connection = connection;

if (m_connection != null)


ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(connection);

if (sdm == null){

sdm = new ServiceDiscoveryManager(connection);

// sdm.addFeature(“http://jabber.org/protocol/disco#info”);

// sdm.addFeature(“jabber:iq:privacy”);


// new ServiceDiscoveryManager(connection);

FileTransferNegotiator.setServiceEnabled(connection, false);

FileTransferManager manager = new FileTransferManager(m_connection);

manager.addFileTransferListener(new FileTransferListener()


public void fileTransferRequest(final FileTransferRequest request)


Log.i(“InstallerActivity”, “Got new File Request!!!”);

Any leads would be great!!