Hi. I do exactly like George does and I encounter the same problem. When I look at the output of 'adb logcat' it says the following as a component tries to bind to my service:
"W/ActivityManager( 571): Unable to start service Intent { comp= {com.android.spare_parts/android.remote.RemoteManagerService} }: not found" Any help is welcome. Regards, Patrick On 14 Jul., 12:34, kenpark <patrick.seiff...@gmx.net> wrote: > Hej George. > > Since I'm trying the same (placing aservicewithin theframework's > core) I'm interested in you issue. > > Have you fixed the problem so far? If so: what was missing? > > Under which path do you have yourserviceclass placed? Does DDMS > complain about not finding the class or the package?! > > Please let me know. > Regards, > Patrick > > On 24 Jun., 00:16, George <bipi...@gmail.com> wrote: > > > I am creating a newServiceas part of the androidframework > > (frameworks/base/core). I have added the following in frameworks/base/ > > core/res/AndroidManifest.xml > > <serviceandroid:name="com.android.server.MyService" > > android:exported="true" /> > > > I have a wrapper class in the same package with the following > > function- > > class Wrapper{ > > .. > > void bindTargetToService(Activity target) { > > mServicedBindTarget = target.bindService(new Intent > > (target.getApplicationContext(), MyService.class), > > m_connectionTarget, Context.BIND_AUTO_CREATE); > > > } > > } > > > When I create an application/activity that creates an instance of the > > Wrapper and calls bindTargetToService(this), DDMS reports that > > com.android.server.MyService: not found. > > The PackageBrowser in SpareParts shows that MyService is part of the > > package. > > > Is there any else that needs to be done to "register" myservice? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---