Android Development In Eclipse - Button Doesn't Show Text As Referenced
<p>i have created two buttons and a textbox. the textbox shows the text that i referenced but the buttons don't show the text as referenced. Instead they show "button". Also when i run the application on my emulator then the application stops. Please Help! </p>

<pre><code>    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;TextView
        android:id="@+id/txtDisplay"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:text="@string/Disp"
        tools:context=".myMain"
        android:textSize= "45dp"
         /&gt;

    &lt;button
        android:id="@+id/bAdd"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:text="@string/hello_world"
        android:textSize="45dp" /&gt;

    &lt;button
        android:layout_gravity="center"
        android:layout_width = "wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world"
        android:id="@+id/bSub"
        android:textSize = "45dp"/&gt;


&lt;/LinearLayout&gt;
</code></pre>

<p>Here is the Strings.xml</p>

<pre><code>&lt;resources&gt; 
&lt;string name="app_name"&gt;Basictut&lt;/string&gt; 
&lt;string name="hello_world"&gt;Hello world!&lt;/string&gt;
 &lt;string name="menu_settings"&gt;Settings&lt;/string&gt;
 &lt;string name="title_activity_my_main"&gt;myMain&lt;/string&gt;
 &lt;string name="Disp"&gt;Your Total Is 0&lt;/string&gt;
 &lt;string name="add"&gt;Add one&lt;/string&gt;
 &lt;string name="sub"&gt;Subtract one&lt;/string&gt;
 &lt;/resources&gt;
</code></pre>

<p>Java Code is:</p>

<pre><code>package com.example.basictut;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.support.v4.app.NavUtils;

public class myMain extends Activity {

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

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
         getMenuInflater().inflate(R.menu.activity_my_main, menu);
         return true;
    }


}
</code></pre>
