开发者

How to combine two applications into one

开发者 https://www.devze.com 2023-03-25 03:30 出处:网络
Following my previous question, I found out that using BroadcastReceiver to launch my service, the service launches on startup and it doesn\'t show on task killer.

Following my previous question, I found out that using BroadcastReceiver to launch my service, the service launches on startup and it doesn't show on task killer.

now my question is, how I add this application (or package) to my main application, so i开发者_如何学Pythont will be installed as two applications.

I tried to add it as a library, but then the service is attached to the main app, and it can be killed with task killer.


Your question confuses me. Perhaps it is because on the Android, the words 'activity', 'application', 'service' etc take on different meanings from what they would be on another platform. Perhaps you can describe better e.g.

What icons do you want to see on your app launcher? What entries do you want to see in your app manager > installed apps?

another thing i didn't understand is "how to add this app/pkg to your main application, so that it will be installed as two apps". If you add a package to your main application, then there will only be one application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号