Hi, I am trying to create an application which has a service running in the background. But i should also be able to re run the service when i select option(Here it is a check box) from the fore ground. I am getting Unable to instantiate service error. I have called the service in my main activity using
Intent periodicService= new Intent(); periodicService.setAction("com.myservice.myservice"); context.stopService(periodicService); context.startService(periodicService); where my context is got by using getApplicationContext(); Any help would be welcome. Thanks and Regards, Abhijeeth -- 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