<service> needs to be inside <application>.

You should see a warning message in the log when you install your app about
there being a problem in the manifest.

On Fri, Sep 4, 2009 at 5:00 PM, sdphil <[email protected]> wrote:

>
> saw this related post --
>
> http://groups.google.com/group/android-developers/browse_thread/thread/e82b09440a9aacaf/c71096392376c349?lnk=gst&q=startservice#c71096392376c349
>
> but my situation is slightly different, my service is not in the same
> package namespace as my application / activities.
>
> so, i have
>
> <manifest ... packaget="com.myco.test" ...>
>
>    <application...>
>        <activity android:name=".myactivity" .../>
>    </application>
>
>    <service android:name=".myservice".../>
>
> </manifest>
>
> the issue is that my service is in --
> package com.myco.service.myservice
>
> and my activity is in --
> package com.myco.test.myactivity
>
> so my questions are --
>
> 1. does my service *have* to be in the com.myco.test namespace?
> 2. if it doesn't, how do I specify the android:name for my activity
> and my service to work?
>
> tia.
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to