[Solved] “Unfortunately MyApp has stopped” when I Press A Button [duplicate]


You have not casted the image buttons correctly.

Use this in onCreate()

    baslat = (ImageButton)findViewById(R.id.baslatButonu);
    ayarlar =(ImageButton) findViewById(R.id.ayarlarButonu);

And Declare this activity in manifest

<activity android:name=".Ayarlar">

From the logcat

**java.lang.RuntimeException: Font asset not found fonts/Bariol_Regular.otf**

Add this font file also
Bariol_Regular.otf

Check this link please
How to use custom font in Android Studio

9

solved “Unfortunately MyApp has stopped” when I Press A Button [duplicate]