Languages

Menu
Sites
Language
How to run service app from UI app.

hello.
I am developing an application that periodically obtains location information from a background service app with a UI.
This service is not destroyed when the application is destroyed.
That is, it is always running.

By the way, I don't know how to run service app from UI app.

In the sample code, the service app is a single application.
Can I have a UI app and a service app in one application (one package)?

Please provide a reference url or code.