Skip to content Skip to sidebar Skip to footer

Logcat Errors Stopping Application From Running - Code Added

Having trouble with my application when attempting to use the class below, see LogCat and .Java class. Anyone able to explain and diagnose this? AddActivity.java 02-16 14:17:52.046

Solution 1:

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Should be

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add);

Post a Comment for "Logcat Errors Stopping Application From Running - Code Added"