title: Android how to run one small app in another
body: <p>I have recently developed an app in which I wanna use a small app I have developed before, let's say in one view like below:</p>
  
  <pre><code>public class MyMain extends Activity {
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      showmysmallapp(); //how?
    }
  }
  </code></pre>
  
  <p>I have saved the small app as aar file and imported it to my new app and added in my <code>build.gradle</code> dependency also:</p>
  
  <pre><code>dependencies {
    compile project(":mysmallapp")
    ... 
  }
  </code></pre>
  
  <p>How can I run the entire small app when a view of my main app starts pls?</p>
  
  <p>or should I have added the library in another way?</p>
  
  <p>Much thanks ahead.</p>