has leaked ServiceConnection com.baidu.location.LocationClient
02-06 05:01:52.806: E/ActivityThread(1120): Activity com.project.xxxActivity $1@45fc5af8 that was originally bound here
02-06 05:01:52.806: E/ActivityThread(1120): android.app.ServiceConnectionLeaked: Activity com.project.main.xxxActivity has leaked ServiceConnection com.baidu.location.LocationClient$1@45fc5af8 that was originally bound here
02-06 05:01:52.806: E/ActivityThread(1120): at android.app.ActivityThread$PackageInfo$ServiceDispatcher.<init>(ActivityThread.java:1121)
02-06 05:01:52.806: E/ActivityThread(1120): at android.app.ActivityThread$PackageInfo.getServiceDispatcher(ActivityThread.java:1016)
02-06 05:01:52.806: E/ActivityThread(1120): at android.app.ContextImpl.bindService(ContextImpl.java:863)
02-06 05:01:52.806: E/ActivityThread(1120): at android.content.ContextWrapper.bindService(ContextWrapper.java:347)
02-06 05:01:52.806: E/ActivityThread(1120): at com.baidu.location.LocationClient.cy(Unknown Source)
02-06 05:01:52.806: E/ActivityThread(1120): at com.baidu.location.LocationClient.do(Unknown Source)
02-06 05:01:52.806: E/ActivityThread(1120): at com.baidu.location.LocationClient$a.handleMessage(Unknown Source)
02-06 05:01:52.806: E/ActivityThread(1120): at android.os.Handler.dispatchMessage(Handler.java:99)
02-06 05:01:52.806: E/ActivityThread(1120): at android.os.Looper.loop(Looper.java:123)
02-06 05:01:52.806: E/ActivityThread(1120): at android.app.ActivityThread.main(ActivityThread.java:4627)
02-06 05:01:52.806: E/ActivityThread(1120): at java.lang.reflect.Method.invokeNative(Native Method)
02-06 05:01:52.806: E/ActivityThread(1120): at java.lang.reflect.Method.invoke(Method.java:521)
02-06 05:01:52.806: E/ActivityThread(1120): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-06 05:01:52.806: E/ActivityThread(1120): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
02-06 05:01:52.806: E/ActivityThread(1120): at dalvik.system.NativeStart.main(Native Method)
new LocationClient 这个的时候 需要用 getApplicationContext。
has leaked ServiceConnection com.baidu.location.LocationClient的更多相关文章
- 百度定位API报错:leaked ServiceConnection com.baidu.location.LocationClient$1@426122f0
使用百度MapApi定位时候,当退出当时使用的activity后,则会报如题的异常,解决办法: 1:当退出当前定位的activity时,一定要在onDestroy方法中要mLocClient.stop ...
- (原)android系统下绑定Server的时候报MainActivity has leaked ServiceConnection的错误
今天在android系统下根据官方的demo代码,我们需要启动一个服务,并绑定,但在程序启动以后,老是报错: Activity MainActivity has leaked ServiceCon ...
- 软件包 com.baidu.location
http://developer.baidu.com/map/loc_refer/index.html?com/baidu/location/package-summary.html
- Android Exception 12(has leaked ServiceConnection)
09-09 15:12:31.154: E/ActivityThread(18855): Activity com..xxx.xx.act.LoadingAct has leaked ServiceC ...
- Android Service com.android.exchange.ExchangeService has leaked ServiceConnection
启动Android项目的时候,clean Project的时候,报错: android.app.ServiceConnectionLeaked: Service com.android.exchan ...
- 百度sdk定位不成功,关闭定位
公司项目有用到百度地图,登录的时候需要定位一次,获取登录的地址信息,在手机无法连接外网的情况,也就无法访问百度定位服务器的时候,定位的回调函数要30秒以上才能返回结果,于是去仔细查百度api,发现没有 ...
- baiduMap
1.把百度地图定位API(下载地址:http://lbsyun.baidu.com/sdk/download?selected=location),里面的lib福祉到自己的项目中 2,进行相关配置(官 ...
- 定位和xml解析和gson解析加上拉加载,下拉刷新
这里的上拉加载,下拉刷新用到是依赖包 Mainactivity,xml解析和定位 package com.exmple.autolayout; import java.util.List; impor ...
- Android6.0中的权限
Android6.0相比之前的Android版本有一个很大的不同点,就是动态的获取权限.之前我们需要什么权限只需要在Manifest文件中声明即可,在6.0中,又新增了运行时权限的动态检测. Andr ...
随机推荐
- YII Framework学习教程-YII的Model-开发规范-路径别名-命名空间
到这里,大概的YII开发已经基本可以,但是下面要将的所有课程,学完之后可以让你更爱YII.下面的教程是讲的MVC的M,model.数据,业务,代码的集中地区.所以开始之前,学学开发规范-路径别名-命名 ...
- 【solr专题之三】Solr常见异常
1.RemoteSolrException: Expected mime type application/octet-stream but got text/html 现象: SLF4J: Fail ...
- JavaScript match 和 exec 备忘笔记
这是一道广为引用的面试题:var someText="web2.0 .net2.0"; var pattern=/(\w+)(\d)\.(\d)/g; var outCome_ex ...
- 精简jQuery Tabs
闲来无事,周末用jQuery写了一个比较精简的Tabs,个别地方可以用到. 截图及代码如下: <!DOCTYPE html> <html> <head lang=&quo ...
- centos搭建zabbix
安装一些依赖包,不同情况缺的包不同 yum install mysql-devel curl curl-devel net-snmp net-snmp-devel perl-DBI php-gd ph ...
- Starship Troopers(HDU 1011 树形DP)
题意: 给定n个定点和m个士兵,n个定点最终构成一棵树,每个定点有一定x个bugs和y个value,每20个bug需要消耗一个士兵,不足20也消耗一个,然后最终收获y个value,只有父节点被占领后子 ...
- How To Compile Qt with Visual Studio 2010
This post is a step-by-step guide on how to compile Qt 4.x.x with MSVC 2010. Although we use Qt 4.7. ...
- WPF笔记(1.9 样式和控件模板)——Hello,WPF!
原文:WPF笔记(1.9 样式和控件模板)--Hello,WPF! 资源的另一个用途是样式设置: <Window > <Window.Resources> <St ...
- ListView.setOnItemClickListener无效
如果ListView中的单个Item的view中存在checkbox,button等view,会导致ListView.setOnItemClickListener无效, 事件会被子View捕获到,Li ...
- haproxy nginx 多路径
nginx 多路径: location / { root /t/deploy/zjdev/deployedApps/zjzc-web-frontEnd/; index index.html index ...