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