i have a small queation
am trying to call a class from the main and am getting an error and the program is stop working
am trying to call from the main.class the test.class
on the main i have write the following code
Intent connectIntent2 = new Intent(Conn.this, Test.class);

and on the test.java i have write

public class testextends Activity {

public void onCreate(Bundle mSavedInstanceState)
findViewById(R.id.button_scan).setVisibility(View. INVISIBLE);

the R.id.button_scan is been define in the main.xml and i just want to make it invisible.
what am doing wrong and what i have to check