title: Android - Combine Two Application Into One Application Project
body: <p>I'm making a simple tutorial android app, and I want to combine it with android game apps that I have, I want the main application is the android app tutorial then game application is the sub menu or within my application, can you tell me how to combine it</p>
  
  <p>(some code to give you some idea of my code)</p>
  
  <p>HomeActivity.Java:(my tutorial)</p>
  
  <pre><code>package com.wglxy.example.dash1;
  
  import android.os.Bundle;
  
  public class HomeActivity extends DashboardActivity 
  {
  
  protected void onCreate(Bundle savedInstanceState) 
  {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_home);
  }
  protected void onDestroy ()
  {
  super.onDestroy ();
  }
  
  protected void onPause ()
  {
  super.onPause ();
  }
  
  protected void onRestart ()
  {
  super.onRestart ();
  }
  
  
  protected void onResume ()
  {
  super.onResume ();
  }
  
  protected void onStart ()
  {
  super.onStart ();
  }
  
  protected void onStop ()
  {
  super.onStop ();
  }
  
  } // end class
  </code></pre>
  
  <p>ChuchApplication.java(game application):</p>
  
  <pre><code>        /**
       * 
       */
      package com.wglxy.example.dash1;
  
      //import com.tmm.android.chuck.quiz.GamePlay;
  
      import android.app.Application;
  
      /**
       * @author rob
       *
       */
      public class ChuckApplication extends Application{
          private GamePlay currentGame;
  
          /**
           * @param currentGame the currentGame to set
           */
          public void setCurrentGame(GamePlay currentGame) {
              this.currentGame = currentGame;
          }
  
          /**
           * @return the currentGame
           */
          public GamePlay getCurrentGame() {
              return currentGame;
          }
      }
  </code></pre>
  
  <p>and here is my androidmanifest:</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.wglxy.example.dash1"
          android:versionCode="1"
          android:versionName="1.0" &gt;
  
          &lt;uses-sdk
              android:minSdkVersion="8"
              android:targetSdkVersion="17" /&gt;
  
          &lt;application
              android:icon="@drawable/sajda"
              android:label="@string/app_name"
              android:theme="@style/Theme.D1" &gt;
              &lt;activity
                  android:name=".HomeActivity"
                  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=".F1Activity"
                  android:label="@string/title_feature1"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;!--
                   activity
                  android:name=".F2Activity"
                  android:label="@string/title_feature2"
                  android:theme="@style/Theme.D1" /&gt;
              --&gt;
              &lt;activity
                  android:name=".F3Activity"
                  android:label="@string/title_feature3"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".F4Activity"
                  android:label="@string/title_feature4"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".BasicTutorial"
                  android:label="@string/title_feature5"
                  android:theme="@style/Theme.D1" /&gt;             
              &lt;activity
                  android:name=".BasicTutorial2"
                  android:label="@string/title_feature5"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".BasicTutorial3"
                  android:label="@string/title_feature5"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".BasicTutorial4"
                  android:label="@string/title_feature5"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".BasicTutorial5"
                  android:label="@string/title_feature5"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".BasicTutorial6"
                  android:label="@string/title_feature5"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;!-- activity
                  android:name=".SingleListItem"
                  android:label="Single Item Selected" &gt; 
              &lt;/activity&gt;--&gt;
              &lt;service
                  android:name=".ChuckApplication"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".SplashActivity"
                  android:label="@string/app_name"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".QuestionActivity"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".RulesActivity"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".EndgameActivity"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".SettingsActivity"
                  android:theme="@style/Theme.D1" /&gt;
              &lt;activity
                  android:name=".AnswersActivity"
                  android:theme="@style/Theme.D1" /&gt;
          &lt;/application&gt;
  
      &lt;/manifest&gt;
  </code></pre>
  
  <p>can anyone help me what to do? 
  any confusion please comment me and i will try to help you.</p>