您的位置:首页 > 移动开发 > Android开发

bindService失败解决android.os.BinderProxy@41014958

2013-08-20 16:20 225 查看
Google Android Issue中有这个缺陷,缺陷详细信息在这里(Google Android Issue 2483),
Using getApplicationContext().bindService instead of just bindService on your activity solves the problem as it is using the higher level application context.
先调用getApplicationContext()获取其所属的Activity的上下文环境才能正常bindService,
也就是在onCreate()方法中使用this.getApplicationContext().bindService([args…])就可以了,否则bindService将永远失败返回false。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: