My application is basically a service, i.e. has no UI (there isn’t any class subclassing Activity). I want to have it displayed in the list of applications and to run the service when it’s started from there, with the advantage that the user can create a shortcut to display it in the home screen.
Is this possible?
Found the solution to this:
Activityand in theonCreate(...)method call your service and then callfinish().To prevent the flashing of the
Activityopening and closing, use this as the theme of yourActivity(in the AndroidManifest.xml):android:theme=”@android:style/Theme.Translucent.NoTitleBar”