Davita
Davita

Reputation: 9124

Run app but not from launcher

I'm developing an android service application, which reacts on some intents. As you know, intents won't trigger until the app is launched for first time. Because my app is not interactive, I'd like it not to be shown in the launcher (app list). I can do this by removing

<category android:name="android.intent.category.LAUNCHER"/>

from the manifest file, but after that, how do I execute the app, as it is not shown anywhere? :|

Thanks.

Upvotes: 2

Views: 1679

Answers (3)

Flynn81
Flynn81

Reputation: 4168

If your application is serviced based, responding to intents, why do you need to execute it? Won't the intents start your application?

Make sure you include the right intent filters in your manifest. Without them intents won't trigger your services.

http://developer.android.com/guide/topics/manifest/intent-filter-element.html

Upvotes: 0

ixx
ixx

Reputation: 32273

What about disable the launcher icon after the application was launched the first time?

http://www.helloandroid.com/tutorials/removing-app-icon-launcher

Although this

the icon will only disapper when the launcher is restarted, so likely on next phone reboot, forcing the launcher to restart is not recommended"

doesn't sound good...

Upvotes: 1

Simon Dorociak
Simon Dorociak

Reputation: 33505

how do I execute the app, as it is not shown anywhere?

So you have to use BroadcastReceiver So similar topic where your can find similar solution. Check this

Upvotes: 1

Related Questions