title: Cannot run Eclipse / Android SDK Project - Errors of Unknown Origin
body: <p>All the files look fine to me - anyone have any ideas/suggestions?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Amani Swann</p>
  
  <p>ERRORS:</p>
  
  <p>Description Resource    Path    Location    Type
  Content is not allowed in trailing section. strings.xml /Linking Manager/res/values line 7  Android XML Format Problem
  invalid resource directory name AndroidManifest.xml /Linking Manager/bin/res    line 1  Android AAPT Problem
  error: Error parsing XML: not well-formed (invalid token)   strings.xml /Linking Manager/res/values line 7  Android AAPT Problem
  Error generating final archive: java.io.FileNotFoundException: C:\Users\User\Desktop\Android Backups\3.1.2013 @1111pm\MyAndroidApp\bin\resources.ap_ does not exist Linking Manager     Unknown Android Packaging Problem</p>
  
  <p>main.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p>
  
  
  
  
  </p>
  
  <p>main2.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout android:orientation="vertical" android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent"
   xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceLarge" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="User Settings:" /&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceLarge" android:id="@+id/TextView01" android:layout_width="wrap_content"  android:layout_height="wrap_content" android:text="" /&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceMedium" android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Data Limit" /&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceSmall" android:id="@+id/textView4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" /&gt;
  &lt;SeekBar android:id="@+id/seekBar1" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt;
  &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt;
      &lt;TextView android:gravity="left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="10MB" android:layout_weight="1.0" /&gt;
      &lt;TextView android:gravity="right" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Unlimited Data" android:layout_weight="1.0" /&gt;
  &lt;/LinearLayout&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceSmall" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" /&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceMedium" android:id="@+id/textView3" android:layout_width="wrap_content"  android:layout_height="wrap_content" android:text="Bandwidth Limit" /&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceSmall" android:id="@+id/textView4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" /&gt;
  &lt;SeekBar android:id="@+id/seekBar1" android:layout_width="fill_parent" android:layout_height="wrap_content" /&gt;
  &lt;LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt;
      &lt;TextView android:gravity="left" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="10kbs" android:layout_weight="1.0" /&gt;
      &lt;TextView android:gravity="right" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Unlimited Bandwidth" android:layout_weight="1.0" /&gt;
  &lt;/LinearLayout&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceSmall" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceMedium" android:id="@+id/TextView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="WiFi Time Limit" /&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceSmall" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" /&gt;
  &lt;TimePicker android:id="@+id/timePicker1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="50.0dip" android:layout_weight="1.0" /&gt;
  &lt;TextView android:textAppearance="?android:textAppearanceSmall" android:id="@+id/TextView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" /&gt;
  &lt;EditText android:id="@+id/editText1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="Blocked Sites - [ex: www.xxx.com]" android:ems="10" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>AndroidManifest.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.mkyong.android"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk android:minSdkVersion="10" /&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
      &lt;activity
          android:name=".SplashScreen"
          android:theme="@android:style/Theme.Black.NoTitleBar" &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=".main2" &gt;
      &lt;/activity&gt;
      &lt;activity android:name=".home" &gt;
      &lt;/activity&gt;
      &lt;activity android:name=".App2Activity" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".AppActivity"
          android:label="@string/app_name" &gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>AppActivity.java (primary java file)</p>
  
  <pre><code>package com.mkyong.android;
  
  import android.app.Activity;
  import android.app.AlertDialog;
  import android.content.Context;
  import android.content.DialogInterface;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  import android.content.Intent;
  
  public class AppActivity extends Activity {
  
  final Context context = this;
  private Button button;
  
  public void onCreate(Bundle savedInstanceState) {
  
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  
  button = (Button) findViewById(R.id.button1);
  
  // add button listener
  button.setOnClickListener(new OnClickListener() {
  
  @Override
  public void onClick(View arg0) {
  
      AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(
          context);
  
      // set title
      alertDialogBuilder.setTitle("Settings Menu");
  
      // set dialog message
      alertDialogBuilder
          .setMessage("Link or Delete?")
          .setCancelable(false)
          .setPositiveButton("Link",new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog,int id) {
          //start new activity
  
          Intent intentApp2Activity = new Intent(AppActivity.this, App2Activity.class);
          startActivity(intentApp2Activity);
  
          // if this button is clicked, close
          // current activity
          AppActivity.this.finish();
      }
    })
          .setNegativeButton("Delete",new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog,int id) {
                  // if this button is clicked, just close
                  // the dialog box and do nothing
                  dialog.cancel();
              }
          });
  
          // create alert dialog
          AlertDialog alertDialog = alertDialogBuilder.create();
  
          // show it
          alertDialog.show();
      }
  });
  }}
  </code></pre>
  
  <p>App2Activity.java </p>
  
  <pre><code>package com.mkyong.android;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.Button;
  
  public class App2Activity extends Activity {
  
  Button button;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main2);
  }
  
  }
  </code></pre>
  
  <p>Strings.xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;string name="app_name"&gt;Linking Manager&lt;/string&gt;
  &lt;string name="button1"&gt;Button1&lt;/string&gt;
  &lt;string name="button2"&gt;Button2&lt;/string&gt;
  &lt;string name="button3"&gt;Button3&lt;/string&gt;    
  &lt;/resources&gt;
  </code></pre>
  
  <p>ERRORS: (shown above at the top of this thread)</p>
  
  <p>All the files look fine to me - anyone have any ideas/suggestions? </p>
  
  <p>Thanks in advance! </p>
  
  <ul>
  <li>Amani Swann </li>
  </ul>