private Button mOcenyPrzycisk; protected void onCreate(Bundle … There is an exception in your second activity. (in ListaOcenActivity).