Force Close When Trying to Switch Activities
<p>im trying to use a button to switch activities in my app, but it keeps force closing. Heres my AndroidManifest.xml: </p>

<pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.idiedastyear"
android:versionCode="1"
android:versionName="1.0" &gt;

&lt;uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="15" /&gt;

&lt;application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" &gt;
    &lt;activity
        android:name=".tabView"
        android:label="@string/title_activity_tab_view" &gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN" /&gt;

            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;

    &lt;activity
        android:name=".calculator"
        android:label="Calculator"  &gt;
    &lt;/activity&gt;
&lt;/application&gt;
</code></pre>

<p></p>

<p>And here is the activity that has the button:</p>

<pre><code>    package com.idiedastyear;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.support.v4.app.NavUtils;


public class tabView extends Activity {

    Button calculator;

    @Override



    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tab_view);
        calculator = (Button)findViewById(R.id.calculatorButton);

        calculator.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                Intent calculatorIntent = new Intent(v.getContext(), calculator.class);
                startActivityForResult(calculatorIntent, 0);
            }
        });
    }




}
</code></pre>

<p>If anyone could help it would be great! Thanks!</p>

<p>EDIT [Logcat]:</p>

<blockquote>
  <p>07-06 17:38:06.683: D/memalloc(25668): ion: Mapped buffer
  base:0x5ce6c000 size:3768320 offset:0 fd:53 07-06 17:38:08.885:
  D/memalloc(25668): ion: Mapped buffer base:0x5d304000 size:3768320
  offset:0 fd:60 07-06 17:38:08.985: D/CLIPBOARD(25668): Hide Clipboard
  dialog at Starting input: finished by someone else... ! 07-06
  17:38:11.738: D/memalloc(25668): ion: Mapped buffer base:0x5d69c000
  size:3768320 offset:0 fd:63 07-06 17:38:12.168:
  D/AndroidRuntime(25668): Shutting down VM 07-06 17:38:12.168:
  W/dalvikvm(25668): threadid=1: thread exiting with uncaught exception
  (group=0x40c72a68) 07-06 17:38:12.178: E/AndroidRuntime(25668): FATAL
  EXCEPTION: main 07-06 17:38:12.178: E/AndroidRuntime(25668):
  java.lang.RuntimeException: Unable to start activity
  ComponentInfo{com.idiedastyear/com.idiedastyear.calculator}:
  android.view.InflateException: Binary XML file line #6: Error
  inflating class Textview 07-06 17:38:12.178: E/AndroidRuntime(25668):
    at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1970)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  android.app.ActivityThread.access$600(ActivityThread.java:128) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  android.os.Handler.dispatchMessage(Handler.java:99) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.os.Looper.loop(Looper.java:137) 07-06 17:38:12.178:
  E/AndroidRuntime(25668):  at
  android.app.ActivityThread.main(ActivityThread.java:4514) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  java.lang.reflect.Method.invokeNative(Native Method) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  java.lang.reflect.Method.invoke(Method.java:511) 07-06 17:38:12.178:
  E/AndroidRuntime(25668):  at
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:980)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:747) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  dalvik.system.NativeStart.main(Native Method) 07-06 17:38:12.178:
  E/AndroidRuntime(25668): Caused by: android.view.InflateException:
  Binary XML file line #6: Error inflating class Textview 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  android.view.LayoutInflater.rInflate(LayoutInflater.java:739) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.view.LayoutInflater.inflate(LayoutInflater.java:489) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.view.LayoutInflater.inflate(LayoutInflater.java:396) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.view.LayoutInflater.inflate(LayoutInflater.java:352) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:274)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  android.app.Activity.setContentView(Activity.java:1835) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  com.idiedastyear.calculator.onCreate(calculator.java:20) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.app.Activity.performCreate(Activity.java:4470) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1053)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1934)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  ... 11 more 07-06
  17:38:12.178: E/AndroidRuntime(25668): Caused by:
  java.lang.ClassNotFoundException: android.view.Textview 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  java.lang.ClassLoader.loadClass(ClassLoader.java:501) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  java.lang.ClassLoader.loadClass(ClassLoader.java:461) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.view.LayoutInflater.createView(LayoutInflater.java:552) 07-06
  17:38:12.178: E/AndroidRuntime(25668):    at
  android.view.LayoutInflater.onCreateView(LayoutInflater.java:636)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  at
  android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
  07-06 17:38:12.178: E/AndroidRuntime(25668):  ... 21 more</p>
</blockquote>
