try: Intent i = new Intent(this, MyService.class); startService (i);
(where 'this' is your Context) On Tue, Jun 15, 2010 at 5:30 PM, tarek attia <[email protected]>wrote: > The Service is registered in the AndroidManifest.xml .... > > and the intent I use is just simple :- > > Intent i = new Intent(); > iGPS_service.setClassName("com.example", "MYService"); > > Where might be the error? > > also in the logCat I see these errors :- > > resources don't contain package for resource number ,,does that relate to > this? > > On Tue, Jun 15, 2010 at 6:08 PM, Mark Murphy <[email protected]>wrote: > >> On Tue, Jun 15, 2010 at 11:06 AM, tarek attia <[email protected]> >> wrote: >> > Hi all,, >> > I have an activity that contains a button in it,and once this button is >> > clicked I start service ,but each time i press the button no service is >> > started and this message appear in the LogCat >> > >> > Unable to start service intent {Package name}: Not found >> >> Either your service is not registered in AndroidManifest.xml, or your >> Intent that you are using to start the service is flawed. >> >> -- >> Mark Murphy >> CommonsWare >> [email protected] >> http://commonsware.com >> >> -- >> 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 >> > > > > -- > tarek > > -- > 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 > -- YuviDroid http://android.yuvalsharon.net -- 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

