In the onPause method of your activity, you should unregister the receivers that you might have registered.
*Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Tue, Sep 27, 2011 at 9:43 PM, Divyata P <[email protected]>wrote: > *how to solve error given below..!!!* > > ERROR/ActivityThread(14320): Service com.micro.btsT.BtsService has leaked > IntentReceiver com.micro.btsT.BtsService$1@462b5288 that was originally > registered here. Are you missing a call to unregisterReceiver()? > ERROR/ActivityThread(14320): android.app.IntentReceiverLeaked: Service > com.micro.btsT.BtsService has leaked IntentReceiver > com.micro.btsT.BtsService$1@462b5288 that was originally registered here. Are > you missing a call to unregisterReceiver()? > ERROR/ActivityThread(14320): at > android.app.ActivityThread$PackageInfo$ReceiverDispatcher.<init>(ActivityThread.java:972) > ERROR/ActivityThread(14320): at > android.app.ActivityThread$PackageInfo.getReceiverDispatcher(ActivityThread.java:755) > ERROR/ActivityThread(14320): at > android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:799) > ERROR/ActivityThread(14320): at > android.app.ContextImpl.registerReceiver(ContextImpl.java:786) > ERROR/ActivityThread(14320): at > android.app.ContextImpl.registerReceiver(ContextImpl.java:780) > ERROR/ActivityThread(14320): at > android.content.ContextWrapper.registerReceiver(ContextWrapper.java:318) > ERROR/ActivityThread(14320): at > com.micro.btsT.BtsService.onStart(BtsService.java:134) > ERROR/ActivityThread(14320): at > android.app.Service.onStartCommand(Service.java:420) > ERROR/ActivityThread(14320): at > android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3267) > ERROR/ActivityThread(14320): at > android.app.ActivityThread.access$3600(ActivityThread.java:135) > ERROR/ActivityThread(14320): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:2211) > ERROR/ActivityThread(14320): at > android.os.Handler.dispatchMessage(Handler.java:99) > ERROR/ActivityThread(14320): at android.os.Looper.loop(Looper.java:144) > ERROR/ActivityThread(14320): at > android.app.ActivityThread.main(ActivityThread.java:4937) > ERROR/ActivityThread(14320): at > java.lang.reflect.Method.invokeNative(Native Method) > ERROR/ActivityThread(14320): at > java.lang.reflect.Method.invoke(Method.java:521) > ERROR/ActivityThread(14320): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) > ERROR/ActivityThread(14320): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) > ERROR/ActivityThread(14320): at dalvik.system.NativeStart.main(Native > Method) > > -- > 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 -- 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

