Sonia
Sonia

Reputation: 129

Android Service application error - no launcher activity

I created a service application without any GUI...infact take help of other applications available on this website...but when i try to run it on my Emulator (2.3.3), I keep on getting error:

2012-02-13 17:36:56 - RUN_SERVICE] No Launcher activity found! [2012-02-13 17:36:56 - RUN_SERVICE] The launch will only sync the application package on the device!

After it installs properly, but i dont see my service running...i tried adding toast messages, but I am not receving that as well...i didnt try it on real device yet...as I didnt have any phone with this android version 2.3.3. I am using jre6

Upvotes: 0

Views: 1096

Answers (3)

Arpit Garg
Arpit Garg

Reputation: 8546

As your applicatinon does not have any GUI.

You must start the Service from at least one activivity that may be lanucher acitivity by using

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

So that your Service need to start when the app is installed or Run.

Upvotes: 2

asma
asma

Reputation: 71

I think you mentioned this in your manifest <category android:name="android.intent.category.LAUNCHER>. if yes then remove this

Upvotes: 0

Rahul garg
Rahul garg

Reputation: 9362

Make sure you have defined the activity in your AndroidManifest.xml file....

Upvotes: 0

Related Questions