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.
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.
If app 1 has android resource files (layouts,xml drawables etc.) and jar dependencies you cannot avoid exposing them.
If you are willing to expose your resource and external jars you can:
The end result is a library project without the java source files but with the resources, this library project can be used in app B without exposing your java files.
Notice that some re-factoring to app1 might be required.