android - Scringo: openChat function doesn't work -


i using library scringo on android. "openchat" function doesn't seem working. absolutely nothing. here code.

i read through api: http://www.scringo.com/docs/api/android/

openchat function should open 1-on-1 chat other user. doesnt happen. nothing happens. other functions working fine. doesn't log errors or warning.

public class mainactivity extends activity implements onclicklistener {  private scringo scringo; private activity mainactivity; private button button;   @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     mainactivity = this;     setcontentview(r.layout.activity_main);      button = (button) findviewbyid(r.id.button);     button.setonclicklistener(this);      scringo.setappid("my-app-id");     scringo.setdebugmode(true);     scringo = new scringo(this);     scringo.init();     scringo.addsidebar();     scringo.loginwithemail("a@testapp.com", "hi", new scringosignuplistener(){         @override         public void onerror(string arg0) {           }         @override         public void onsuccess(string arg0) {             log.w("user",scringo.getuserid());           }     }); } @override public void onclick(view arg0) {     //i using id of user.     //this not work. nothing happens. no error or warning either.     scringo.openchat(this, "qk8vjs4fre");        //this works fine.      //scringo.openchatrooms(this);  } } 

you should call openchat after getting user:

scringo.getuserbyscringoid("some_id...", new scringogetuserlistener() {     @override     public void gotuser(scringouser user) {         scringo.openchat(mainactivity.this, "some_id...");     } }); 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -