You have to use your activity context and use that context for create new activity.
Make one constructor for initialize context.
public AdapterCustom(Context context) {
this.context = context;
}
You have to use your activity context and use that context for create new activity.
Make one constructor for initialize context.
public AdapterCustom(Context context) {
this.context = context;
}