Android Activity not starting due to E/AndroidRuntime(1273)
J
Jpvpratas
started a topic
about 8 years ago
Android Activity not starting due to E/AndroidRuntime(1273)
1 Comment
J
Jpvpratas
said
about 8 years ago
Hello everyone
The app I'm working on is based on a simple activity with a button that lauches the Architect view Activity.
it happens that when i hit the button, the app crashes.
Here is the way I have my code (switch statement in main activity):
public void onClick(View v) {
switch(v.getId()){
case R.id.openTourApp:
Intent launcher = new Intent(this, CameraFullActivity.class);
startActivity(launcher);
break;
}
}
When i hit the button, the logcat stacktrace gives me this error:
E/AndroidRuntime(1273): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.joaopratas.tourapp/com.joaopratas.tourapp.CameraFullActivity}: java.lang.IllegalStateException: This method only has to be called right after the object has been constructed
I've been trying to fix this error for days and I can't seem to fix it.
Jpvpratas