dongxupc 2018-10-11 03:56 采纳率: 100%
浏览 1273
已采纳

android ARCGIS退出app崩溃。。。

android 部分代码
if (bdLocationA==null)
{
return;
}

                new Thread() {

                    public void run() {

                        CoordinateTransUtil TransformUtil = new CoordinateTransUtil();
                            double[] gcj02to84 ;
                        try {
                          gcj02to84 =TransformUtil.gcj02to84(bdLocationA.getLongitude(), bdLocationA.getLatitude());

                        } catch (Exception ex) {

                            logA("出错了。。。" + ex.toString());
                            return;
                        }

                        String url =cscs.url + "?getLongitude=" + gcj02to84[1] + "&getLatitude=" + gcj02to84[0];

                        final String str = MyHttp.getTextUrl(url);

                        double parseDouble = Double.parseDouble(str.split("\\,")[0]);
                        double parseDouble2 = Double.parseDouble(str.split("\\,")[1]);

                        ShowPointOnMap(parseDouble, parseDouble2);

                    }

                }.start();

错误代码
10-11 12:23:21.894 4299-4757/com.cs.cscs E/libc: Access denied finding property "ro.opengles.version"
10-11 12:23:22.568 4299-4310/com.cs.cscs E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:180)
at java.util.zip.Inflater.(Inflater.java:104)
at java.util.zip.GZIPInputStream.(GZIPInputStream.java:76)
at java.util.zip.GZIPInputStream.(GZIPInputStream.java:89)
at com.esri.core.internal.io.handler.c$b.getContent(SourceFile:445)
at org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:105)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:117)
at com.esri.core.internal.io.handler.h$1.handleResponse(SourceFile:201)
at com.esri.core.internal.io.handler.h$1.handleResponse(SourceFile:197)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:662)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:632)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:621)
at com.esri.core.internal.io.handler.h.a(SourceFile:197)
at com.esri.core.internal.io.handler.h.a(SourceFile:63)
at com.esri.core.internal.tasks.ags.t.a(SourceFile:39)
at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.initLayer(SourceFile:279)
at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer$1.run(SourceFile:193)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
10-11 12:23:22.648 1693-1792/system_process E/InputDispatcher: channel 'e88f1c9 com.cs.cscs/com.cs.cscs.arcgismap.mapA (server)' ~ Channel is unrecoverably broken and will be disposed!
10-11 12:23:22.650 1693-1792/system_process E/InputDispatcher: channel 'f9b9409 com.cs.cscs/com.cs.cscs.mainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-11 12:23:22.650 1693-1792/system_process E/InputDispatcher: channel '167bca0 com.cs.cscs/com.cs.cscs.takeActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-11 12:23:22.819 4802-4809/? E/art: Failed writing handshake bytes (-1 of 14): Broken pipe

展开全部

  • 写回答

1条回答 默认 最新

  • birdno1 2018-10-18 17:14
    关注

    关闭StrictMode模式,报错是http请求没有关闭

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥20 plant simulation与python com接口实时数据交互
  • ¥15 有关汽车的MC9S12XS128单片机实验
  • ¥15 求c语言动态链表相关课程有偿,或能将这块知识点讲明白
  • ¥15 FLKT界面刷新异常
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥50 单细胞测序拟时序分析
  • ¥50 运行springboot项目报错
  • ¥15 FTP 站点对站点传输失败
  • ¥15 宝塔面板一键迁移使用不了
  • ¥15 求一个按键录像存储到内存卡的ESP32CAM代码
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部