android - How to get DiscussionHistory for MultiUserChat room using aSmack? -


how discussionhistory of muc room multiuserchat? able create multiuserchat instance , room using asmack library, want show previous conversations happened in room.

anybody experienced in same please me. google searched lot still did't proper documentation / explanation on this.

discussionhistory history = new discussionhistory(); history.setsince(date);  muc.join(nickname, null, history, smackconfiguration.getreplytimeout());  // historical message; message oldmsg = muc.nextmessage(timeout); 

you can use

history.setmaxchars() history.setmaxstanzas() history.setseconds() 

some examples in test code. check test testdiscussionhistory.

http://fisheye.igniterealtime.org/browse/smack/trunk/test/org/jivesoftware/smackx/muc/multiuserchattest.java?hb=true


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -