0

Good day. I have three java class in my android program. Before I added the 3rd class the application doesn't stopped but then right now when I already have my 3rd class and when I run it, the play button on my first class suddenly stops. There are no errors in my program though. Here is the code for my 3rd class.

package com.example.fillmeapp;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
import android.view.View.OnClickListener;

public class App3Activity extends Activity {

Button button;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main3);

}

}       
Anne
  • 1
  • 1

3 Answers3

0

You must add the App3Activity in your AndroidManifest.xml

Sharp Edge
  • 4,144
  • 2
  • 27
  • 41
0

Hope Your first activity got destroyed. Kindly go through the android Activity lifecycle

0

You have to declare the activity in the manifest. Add this to your AndroidManifest.xml:

<activity android:name=".App3Activity" />
max59
  • 606
  • 1
  • 7
  • 16
  • i already added the 3rd activity to my android manifest but still it stopped anyway thank you :)) – Anne Jan 08 '15 at 13:06