Again, third party applications can not doing this. If you are not doing a third party application, but modifying the platform, you should be posting to android-porting.
On Mon, Dec 7, 2009 at 12:25 AM, Bharath <bharath.pat...@gmail.com> wrote: > > I cannot call the third party services by getSystemService() method > but is there a way to > to register my service as System Service so that I can invoke the > service my above method? > I have to register my service with Android Framework. > I think I can do this by making changes to the Android framework and > compile the code. > Please help me out how I can change the Android source code. I already > got Android Source code (Cupcake) > and compiled images on my host machine. > > > On Dec 5, 10:38 pm, Dianne Hackborn <hack...@android.com> wrote: > > 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 <bharath.pat...@gmail.com> > 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 > android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com><android-developers%2Bunsubs > cr...@googlegroups.com> > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en