On Jun 9, 10:41 am, "nick.titatingmembr...@googlemail.com" <nick.titatingmembr...@googlemail.com> wrote: > Hi, > > I have a service class my.app.MyService that I'm attempting to launch > from my.app.MyActivity as follows: > > Intent svc = new Intent( this, MyService.class );
I assume that you are starting the service from your main Activity, in a manner such as: YourService.setMainActivity(this); Intent svc = new Intent(this, MyService.class); startService(svc, Bundle.EMPTY); and that they are in the same package? > > The manifest contains the entries: > > <uses-permission > android:name="android.permission.ACCESS_BACKGROUND_SERVICE" /> > > <service android:name =".MyService" /> > > LogCat gives the message: > > "Unable to start service Intent { comp={"my.app/ > my.app.MyService" } } : not found" > > Could someone kindly let me know what I am missing? > > Thanks, > > Nick. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---