i am using asmack-android-16 library for android , and had set openfire 3.8.2 server on the local machine. My problem is when i try to get the joined rooms it gives me item-not-found error . what can be the possible problem . The user is alreay join in the room as i can see that at admin console but still it gives me error this is how am using getJoinedRooms function
hail is the username , and 192.168.1.3 is the ip of hosted server.
Iterator RoomsIterator=MultiUserChat.getJoinedRooms(Connection,"hail@192.168.1.3/Smack") ;
i also tried using:
Iterator RoomsIterator=MultiUserChat.getJoinedRooms(Connection,"hail@192.168.1.3");
but this give me no response from server . and when i try to debug it i recieve error with remote server not found.
Moreover initially my getHostedRooms function wasn't working but then able to get it working by changing
ServiceDiscoveryManager.getInstanceFor(connection).discoverItems(connection);
to:
ServiceDiscoveryManager discoManager = new ServiceDiscoveryManager(connection);
but same trick didnt work to get joined rooms. what could be the possible problem is it with server or with the library or with the code. is there anyother way to get joined rooms. did anyone tried doing same thing with openfire 3.8.2 and asmack and get the results?
Please help me with this, i am stuck on this since 5 days