title: App Name is Eclipse MainActivity?
body: <p>I have finished a tip calculator app, but when I run it the name is <code>MainActivity</code>, I don't know how to change it, I have tried editing <code>strings.xml</code> but when I run the app I get errors,I don't know what else to try, any suggestions for what I can do to change it so it appears on the emulator</p>
  
  <p>on strings.xml...</p>
  
  <p>name:<code>title_activity_main</code>
  value:<code>MainActivity</code></p>
  
  <p>also here is my java code will i have to change anything here?</p>
  
  <pre><code>package tip.calculator;
  
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.View.OnClickListener;
  import android.widget.EditText;
  import android.widget.TextView;
  import android.view.View;
  import android.widget.Button;
  import java.text.DecimalFormat;
  
  public class TipCalculator extends Activity 
  {
  private EditText myEditField;
  private EditText myEditField2;
  private Button enter;
  
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      myEditField2 = (EditText) findViewById(R.id.billText);
      myEditField = (EditText) findViewById(R.id.percentText);
      enter = (Button)findViewById(R.id.button1);
  
      enter.setOnClickListener(new OnClickListener() {
  
          public void onClick(View v) {
              TextView textView;
  
              textView = (TextView) findViewById(R.id.textView1);
  
              final EditText myEditField = (EditText) findViewById(R.id.percentText);
              final EditText myEditField2 = (EditText) findViewById(R.id.billText);
  
              float percentage;
              float percentageInp;
              float billAmount;
              double output; 
              String output1;
  
              percentageInp = Float.parseFloat(myEditField.getText().toString());
              billAmount = Float.parseFloat(myEditField2.getText().toString());
  
              percentage = ((float)percentageInp /100);
  
              output = (double)(billAmount * percentage);
  
              double result = output * 100;
              result = Math.round(result);
              result = result / 100;
  
              output1 = Double.toString(result);
  
              textView.setText(output1);
  
          }
      });
  }
  }
  </code></pre>
  
  <p>manifest.xml ...</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="tip.calculator"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="13"
          android:targetSdkVersion="15" /&gt;
  
      &lt;application
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" android:debuggable="true"&gt;
          &lt;activity
              android:name=".TipCalculator"
              android:label="@string/title_activity_main" &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;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>here is my strings.xml </p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;string name="app_name"&gt;Tip Calculator&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_main"&gt;MainActivity&lt;/string&gt;
  
  &lt;/resources&gt;
  </code></pre>