service 没有unbind时was originally bound here错误

 在程序中,如果在activity中绑定了服务,而没有在destory中,写unbind,会出现这种异常,
Activity com.neusoft.dsn.infoplayer.InfoPlayerActivity has leaked ServiceConnection com.neusoft.dsn.infoplayer.InfoPlayerActivity$2@405189f8 that was originally bound here
解决办法,在destory中,加上context.unbindService(u'r ServiceConnection)

posted on 2014-03-26 16:27  axiaoquana  阅读(232)  评论(0)    收藏  举报

导航