Q:

App wont open after deleting void

I'm just starting out in android and I have my MainActivity class which has a void in there 'addItem' which I want to move to a different class each time I delete the void the app force closes
How do I remove the void without it interfering with the operation of the app?  I have searched the path of the project and cant find any references to it so I'm at a loss as to why it's not working.  
I'm using IntelliJ on windows 7 if that helps
*UPDATE*
A bit more detail, there isn't much in the app at the moment; here is the ActivityMain:
import android.app. Activity;
import android.os. Bundle;
import android.view. Menu;
import android.view. MenuInflater;
import android.view. MenuItem;

public class ActivityMain extends Activity {
    /**
     * Called when the activity is first created. 
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_main);

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.menu_main, menu);
        return true;
    }

    public void addItem(MenuItem menuItem) {

    }

I have created another class that is going to have the addItem void in it, but when I delete it from here and try to run the app it stops
Here is the logcat error
01-04 09:15:04.268: ERROR/AndroidRuntime(2179): FATAL EXCEPTION: main
        android.view. InflateException: Couldn't resolve menu item onClick handler addItem in class com.spences10apps. SScript. ActivityMain
        at android.view. MenuInflater$InflatedOnMenuItemClickListener.<init>(MenuInflater.java:217)
        at android.view. MenuInflater$MenuState.setItem(MenuInflater.java:417)
        at android.view. MenuInflater$MenuState.addItem(MenuInflater.java:451)
        at android.view. MenuInflater.parseMenu(MenuInflater.java:188)
        at android.view. MenuInflater.inflate(MenuInflater.java:110)
        at com.spences10apps. SScript. ActivityMain.onCreateOptionsMenu(ActivityMain.java:25)
        at android.app. Activity.onCreatePanelMenu(Activity.java:2490)
        at com.android.internal.policy.impl. PhoneWindow.preparePanel(PhoneWindow.java:407)
        at com.android.internal.policy.impl. PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:769)
        at com.android.internal.policy.impl. PhoneWindow$1.run(PhoneWindow.java:201)
        at android.view. Choreographer$CallbackRecord.run(Choreographer.java:749)
        at android.view. Choreographer.doCallbacks(Choreographer.java:562)
        at android.view. Choreographer.doFrame(Choreographer.java:531)
        at android.view. Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
        at android.os. Handler.handleCallback(Handler.java:725)
        at android.os. Handler.dispatchMessage(Handler.java:92)
        at android.os. Looper.loop(Looper.java:137)
        at android.app. ActivityThread.main(ActivityThread.java:5191)
        at java.lang.reflect. Method.invokeNative(Native Method)
        at java.lang.reflect. Method.invoke(Method.java:511)
        at com.android.internal.os. ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
        at com.android.internal.os. ZygoteInit.main(ZygoteInit.java:562)
        at dalvik.system. NativeStart.main(Native Method)
        Caused by: java.lang. NoSuchMethodException: addItem [interface android.view. MenuItem]
        at java.lang. Class.getConstructorOrMethod(Class.java:460)
        at java.lang. Class.getMethod(Class.java:915)
        at android.view. MenuInflater$InflatedOnMenuItemClickListener.<init>(MenuInflater.java:215)
        ... 22 more
01-04 09:15:04.275: WARN/ActivityManager(426): Force finishing activity com.spences10apps. SScript/.ActivityMain
01-04 09:15:04.361: DEBUG/dalvikvm(426): GC_CONCURRENT freed 833K, 23% free 6881K/8840K, paused 7ms+6ms, total 87ms
01-04 09:15:04.361: DEBUG/dalvikvm(426): WAIT_FOR_CONCURRENT_GC blocked 37ms
01-04 09:15:04.424: DEBUG/dalvikvm(426): GC_FOR_ALLOC freed 42K, 18% free 7335K/8840K, paused 41ms, total 41ms
01-04 09:15:04.424: INFO/dalvikvm-heap(426): Grow heap (frag case) to 8.481MB for 1127536-byte allocation
01-04 09:15:04.463: DEBUG/dalvikvm(426): GC_FOR_ALLOC freed 2K, 16% free 8434K/9944K, paused 41ms, total 41ms
01-04 09:15:04.861: WARN/ActivityManager(426): Activity pause timeout for ActivityRecord{4143dab8 u0 com.spences10apps. SScript/.ActivityMain}
01-04 09:15:05.041: INFO/ActivityManager(426): No longer want com.google.android.talk (pid 1381): empty #17

A:

Found it
      android:onClick="addItem"

In the menu_main.xml file needed to be removed

