A third party app can't do that.  As the name says, getSystemService() is
for system services only.

On Sat, Dec 5, 2009 at 5:33 AM, Bharath <[email protected]> wrote:

>
> Hi
>
> I have a question regarding services.
> In Android I am able to use all the methods defined in the service by
> calling bindService().
> In bindService() we have to pass the ServiceConnection object and
> could able to get the reference of Service Interface through which we
> can invoke service methods.
>
> But Android framework services (System services) are started in a
> different manner by just calling the getSystemService(). How can I
> register my service with Android framework.
>
> Please help me on this issue.
> I already downloaded Android source code and compiled on my host
> system.
>
>
> Thanks
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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