Skip to content
Advertisement

Tag: mobile-application

AndroidRuntime error at com.example.appname.MainActivity.onCreate

I am trying to write Java code that creates a button click event that populates an edit text box with my name. Unfortunately I am getting runtime errors. I checked almost all related topics and questions on stackoverflow but couldn’t figure it out my problem. Appreciated for your helps. MainActivity.java fragment_main.xml AndroidManifest.xml Error LogCat Answer Use fragment_main.xml instead of activity_main.xml

Advertisement