Before explaining, I will show you my (shorted) code:
MainActivity.java:
public class MainActivity extends AppCompatActivity { SecondF