I want to implement mesibo real time API in my code for audiocall, but still having problem here provided code , random number gives null pointer. what mistake is did here.
Mesibo api = Mesibo.getInstance();
api.init(getApplicationContext());
// set path for storing DB and messaging files
Mesibo.setPath(Environment.getExternalStorageDirectory().getAbsolutePath());
// add listener
Mesibo.addListener(this);
// set access token
if(0 != Mesibo.setAccessToken(access_token)) {
// return false;
}
// set database after setting access token so that it's associated with the user
Mesibo.setDatabase("mesibo.db", 0);
// Now start mesibo
if(0 != Mesibo.start()) {
// return false;
}
Mesibo.UserProfile mProfile = new Mesibo.UserProfile();
mProfile.name = "user_name";
mProfile.address = "xyz";