App integration with another
<p>I would like to integrate an application (lets call this app1), into another application (app2), which will invoke app1 with a button click. What are the possible ways of achieving this, without exposing the source code of app1 to app2. app1 shouldn't be installed as a saperate application, it should be part of app1.</p>

<p>I was thinking to somehow convert app1 to a jar file and integrate it in to app2, is this possible?, or suggest me some ways to achieve the above requirement.</p>
