I am rookie XMPP developer and have read XMPP definitve guide , wikis many dev forums but there are few things that i am not able to understand.
May be this is a very small question but i want to be clear before i start developign .
What is PubSub , exactly in what live scenarios of a chat messenger app will this feaure be used. because i see other classes for login , register , listners, rosters , chat managers , bytstreams etcc… which are clear to be when those are to be used but not PubSub
As its a chat program … this will be threaded … and i want to under stand if my approach is correct
Create one MainAndroid service … which will later invoke 4 theards
1st thread for Connection , roster listners
2nd for Chat manager and listners
3rd for Fileuploads and downloads
4th gneral for packet and other listners and exchnages
Is this a good apporach or its all crap.
How do i use listners in a java program for eg i tried to use RosterListener but it was not actully listening for the changes is it because the program was not threaded ? bcz i just wrote in followin fashion where it does work but not in realtime is bcz its not threaded ?
Can anyone help me with a sample code for implementing a listner in realtime.
I am slowerly moving from SAP to java/android programming so may be these are too basic questions but any help from the community will be really helpful…
I am based in Pune , India … we can meet for a beer if any one out there.