S
S
Sergey Defactov2018-02-27 20:46:46
Java
Sergey Defactov, 2018-02-27 20:46:46

Context cannot be converted to ActivityBase?

public void initPicture() {
        final ActivityBase activity = this.context;
        activity.setPermissionGranted(new OnPermissionGranted() {
            public void onGranted() {
                MultiImageSelector.create().showCamera(true).count(5).multi().start(activity, Contants.FEED_PHOTO_SELECT.intValue());
            }
        });
    }

please help when compiling, I get an error indicating this code
Context cannot be converted to ActivityBase
final ActivityBase activity = this.context;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2018-02-27
@cashloveyou

(ActivityBase)this.context

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question