java.lang.IllegalArgumentException: Service Intent must be explicit 意思是服务必须得显式的调用 我之前是这样使用绑定Service的 他报错了 因为在5.0之后google升级了SDK 他要求所有的Service服务必须得显式的调用,不能隐式的调用 解决办法 使用如下代码 /*** * Android L (lollipop, API 21) introduced a new problem when trying to inv…
今天没事来写个播放器,照搬书上的原句,其中一句 //用于启动和停止service的Intent final Intent it = new Intent("android.mu.action.music"); 在运行的时候就出了问题,经百度,是Android5.0以后不能这么写了,所以挂了(看来书要读新啊,技术变化太快,旧书过时了). 那么该怎么改? //用于启动和停止service的Intent final Intent it = new Intent(当前类名.this,要调用的S…
Caused by: java.lang.IllegalArgumentException: Service not registered: org.diql.aidldemo.MainActivity$ServiceConn@e38be65 at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1044) at android.app.ContextImpl.unbindService(ContextImpl.java:…
java.lang.IllegalArgumentException: The observer is null.终于解决方式 在使用数据适配的时候的问题: java.lang.IllegalArgumentException: The observer is null. at android.database.Observable.unregisterObserver(Observable.java:64) at android.widget.BaseAdapter.unregisterDat…