If you move your other app from the main activity to a class or module, then you can share those code in an other program. Be aware that you can put and maintain those shared code on a shared location and refer in an other program to that shared code by not copy the code but point to that shared code. In this way you can divide a program into different bite-sized chunks that you can easily and quickly reuse.