Application only as service

SirGu

New Member
Licensed User
Longtime User
I am trying to make a app that it is only a service.
I know how to make the service and launch it, but I would like to launch the service without an activity layout. I mean, when i launch the app, it is only show the icon in the notify bar.

Is it possible?

thanks in advance.
 

corwin42

Expert
Licensed User
Longtime User
You can remove the <activity> ... </activity> block for the main activity from the manifest file. The problem is, how to start the service. One solution is as Erel mentioned the "start service at boot" option.

Removing the block is also nice for widget only apps. The app will not be listed in the app list of the launcher and you can only add the widget(s).
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…