How to use "find View by id " in non activity class below is my code snippet. Error message "cant resolve method find View by id" : public class Broadcast extends Receiver {

    @Override
    protected void Name(Context context) {
        //.................
    }

    @Override
    public void onButton(Context context, boolean isClick) {

        if(isClick) {

           ImageView blueImage = (ImageView) findViewById(R.id.imageView);
.......and so on
