Question: I want to make a button in an activity disabled if it is intented from a certain button and otherwise enabled if and it is intented from some other class.What I am saying will be clear after reading the code.

This is the function to intent the class containing the button.

```
showperson.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                falses=true;
                ob.truth=false;
                Toast.makeText(home_page.this, "doneit"+ob.truth, Toast.LENGTH_SHORT).show();
//                Button clik=fb.getButton();
//                clik.setVisibility(View.GONE);
                 Intent to=new Intent(home_page.this,Form.class);
                to.putExtra("buttonclik",false);
                startActivity(to);

            }
        });

```

Answer: 
i had this issue and it was a directory name capitalization problem.

i was importing my component like this :

```
../proxies/test.component

../Proxies/test.component

```
It's all about the path of files, make sure it is **case-sensitive**