amarikp / asmack

Automatically exported from code.google.com/p/asmack
Other
0 stars 0 forks source link

AdHocCommandManager.getAddHocCommandsManager returns null #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm using asmack-2010.05.07.jar to write a simple Android client that listens 
for 'adhoc' commands and responds to them.

To do that I need to get access to the AdHocCommandManager. After creating a 
connection, it should be possible to get one by calling:

manager = AdHocCommandManager.getAddHocCommandsManager(con);

When using asmack I get back a null.

Using a similar approach with plain Smack for a desktop client works fine.

I'm using Android 2.1.

Has anyone else run into this?

Thanks.

Paul

Original issue reported on code.google.com by pvang...@gmail.com on 29 Dec 2010 at 11:07

GoogleCodeExporter commented 8 years ago
I wonder if a change similar to

https://github.com/rtreffer/smack/commit/7ad98dc7f729781b442156561f5ebc2894569d1
b

is needed in this part of the code also.

Paul

Original comment by pvang...@gmail.com on 29 Dec 2010 at 11:15

GoogleCodeExporter commented 8 years ago
I have verified that indeed resolved the problem. I've attached the diff.

Original comment by pvang...@gmail.com on 30 Dec 2010 at 5:53

Attachments:

GoogleCodeExporter commented 8 years ago
the same goes for ServiceDisoveryManager.getInstanceFor(connection)
Greetings
Markus

Original comment by mxa4...@gmail.com on 28 Nov 2012 at 9:56