title: AndroidManifest.xml with multiple application tags
body: <p>I'm very new to Android programming and I've been trying to figure out why my app is force-closing on a button-click. I've narrowed it down to a few things. </p>
  
  <p>One question; Is it possible to have more than one <code>&lt;application&gt;</code> tag in the manifest xml?</p>
  
  <p>Here is my code:</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.dummies.android.beergoggles"
    android:versionCode="1"
    android:versionName="1.0"&gt;
  &lt;uses-sdk android:minSdkVersion="8" /&gt;
  
  &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
      &lt;activity android:name=".MainActivity"
                android:label="@string/app_name"&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="Result" android:label="@string/app_name"&gt;        &lt;/activity&gt;
  &lt;/application&gt;
  &lt;application android:name="MyApp" 
     android:icon="@drawable/icon" 
     android:label="@string/app_name2"&gt;&lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>I've been researching, but found only a vague post about creating a new manifest file for a new application. The MyApp application is just an app for a "global variable", since I guess there's no way to do that without a new application.</p>
  
  <p>Here is the code for MyApp in case it helps:</p>
  
  <pre><code>import android.app.Application;
  
  public class MyApp extends Application{
  
  public static int resultCount;
  
  public int getCount(){
      return resultCount;
    }
  public void setCount(int c){
      resultCount = c;
  }
  }
  </code></pre>
  
  <p>Any help would be much appreciated.</p>