How to switch layouts? First, I have a class Main where is `onCreate` (`setContentView(R.layout.main);`) and then I call, another class with command:

```
setContentView(secondClass);

```

In this class, I draw with Canvas and this work just fine. I also create button to go back in first "class" (`R.layout.main`), but I don't know how to do it.

Now my program is basic a graph shower. In first class you type your function and them second class draw it. But how to go back in first class to type another function. This "back" button or arrow witch every Android phone have, send me out of program not back on insert part.

In secondClass I can't create onCreate method, but I also tried the following and they didn't work:

`Intent abc = new Intent("bla.bla.bla.FIRSTCLASS");`

```
startActivity(abc);

```

and

`Intent abc = new Intent(SecondClass.this,FirstClass.class);`

```
startActivity(greNaPrvoOkno);

```