Buddika
Buddika

Reputation: 1

How to integrate two .apk files

My problem is, I have two android apps. first one is UI app(Activity). second one is non-UI app(Service). How can you integrate both apps and install together?....

Upvotes: 0

Views: 729

Answers (2)

psoulos
psoulos

Reputation: 830

Both of those are components, not applications. The application is the entire project put together, whereas the components are made up of different Android APK classes. See:

http://developer.android.com/guide/topics/fundamentals.html

You need to add both the activity and service to the manifest file. From your UI activity, you can call startService() to start the service. Make sure to read up on life-cycles too.

Upvotes: 2

LaLeX
LaLeX

Reputation: 198

Use the <service> tag inside your Android.xml

Upvotes: 0

Related Questions