当执行.unbindService(mConnection);时报告如下异常:

java.lang.RuntimeException: Unable to destroy activity {com.symbio.kkbox.ui/com.symbio.kkbox.ui.PlayerActivity}: java.lang.IllegalArgumentException: Service not registered:

需要getApplicationContext().unbindService(mConnection);来提升应用程序级别。同理,bindservice也需要提升到applicationcontext级别

posted on 2010-11-08 17:27  振南—何氏  阅读(4239)  评论(1编辑  收藏  举报