Hi, I was working on an application but i'm stuck at a point now.. I'm able to send the chat messages but unable to receive any... I have two threads, 1 for sending message and another for receiving but receiving part isn't working! I think the problem is with multithreading! can anyone help me out?? import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java_chat.Java_chat.chat; import static java_chat.Java_chat.connection; import static java_chat.Java_chat.free; import org.jivesoftware.smack.Chat; import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.PacketCollector; import org.jivesoftware.smack.XMPPException; import org.jivesoftware.smack.packet.Message; import org.jivesoftware.smack.filter.PacketFilter; import org.jivesoftware.smack.filter.AndFilter; import org.jivesoftware.smack.filter.PacketTypeFilter; import org.jivesoftware.smack.packet.Packet; public class Java_chat { private static String username = "some …

Member Avatar
Member Avatar
+0 forum 1

I am developing a desktop application in Java which provides chat function to users. I am using smack API and I am using X-Facebook Platform for logging in. I have developed a class which can connect to facebook and authenticate if session key available. But I can't figure out how to do this? And also how can I set xmpp_login and offline_access permissions after logging in of user? I read the authentication documentation on Facebook but can't understand, url commands there require a redirect url for the app, but I have no url attached with the app as it has …

Member Avatar
+0 forum 0

The End.