I am making a call to a sdk call that requires an Activity parameter. I thought that ba.Activity would work (I am passing final BA ba in my call). I am using @ActivityObject in my class.
The call opens an authorization dialog, however an error happens before the dialog ever opens.
The library code is fairly long (with other calls etc), but i have narrowed the Nullexceptionerror error down to the following...
The call opens an authorization dialog, however an error happens before the dialog ever opens.
The library code is fairly long (with other calls etc), but i have narrowed the Nullexceptionerror error down to the following...
B4X:
fb.authorize(ba.activity, new String[] {"publish_stream","read_friendlists"}, new DialogListener() {
@Override
public void onCancel() {
}
@Override
public void onComplete(Bundle values) {
Editor editor = sp.edit();
editor.putString("Access_Token", fb.getAccessToken());
editor.putLong("Expires", fb.getAccessExpires());
editor.commit();
if(DialogType == "feed"){
showfeed(ba);
}else{
apprequest(ba);
}
}
@Override
public void onError(DialogError derror) {
}
@Override
public void onFacebookError(FacebookError ferror) {
}
});
Last edited: