解决“has leaked ServiceConnection com.baidu.location.c@427b6780 that was originally bound here”的错误,需要修改AndroidManifest.xml文件。
配置Map定位权限和远程链接机制。不然,就会报下面的错误:
has leaked ServiceConnection com.baidu.location.c@427b6780 that was originally bound here android.app.ServiceConnectionLeaked: Activity XX.XX.XX.XXXXActivity has leaked ServiceConnection com.baidu.location.c@427b6780 that was originally bound here at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
添加定位权限:
<uses-permission android:name="android.permission.BAIDU_LOCATION_SERVICE" />
<service android:name="com.baidu.location.f" android:enabled="true" android:process=":remote" > </service>
解决has leaked ServiceConnection com.baidu.location.c@427b6780
原文:http://blog.csdn.net/john_f_lau/article/details/45174287