My class activity should return callback interface to other class
step1. class 1 open Activity
step2. Activity return callback to class1
Can i do somthing like that?
AccountPickerActivity pickerActivity = new AccountPickerActivity(new AccountPickerActivity.onPickAccountFromPickerIntent() {
@Override
public void onPickAccountFromPickerIntent() {
onConnected(null);
}
});
Intent i = new Intent(mContext, pickerActivity.getClass());
mContext.startActivity(i);
Or there is any way to call interface from activity to other class (witout using static)?