解决方案 »
- 小弟android新手,请教一个xml解析的问题
- hierarchyviewer]Unable to load window data for window
- LayoutInflater的inflate方法
- android与java的关系
- 作为一名合格的Android软件开发工程师的标准!
- 求大神帮忙看下这个错误是什么
- 原来说错了:右边两个按钮并排靠右,左边一个按钮填满其他空间,有代码和图片
- 我的datapicker怎么显示成这样?
- 请问 Unhandled Exception: java.io.IOException 这种问题一般是怎么造成的?如何解决?
- 关于AndroidTV上使用scrollview的问题
- qq授权和空间分享
- 安卓如何实现这个效果
if (app.mBMapMan == null) {
app.mBMapMan = new BMapManager(getApplication());
app.mBMapMan.init(app.mStrKey,
new BMapApiDemoApp.MyGeneralListener());
}
app.mBMapMan.start();
// 如果使用地图SDK,请初始化地图Activity
long iTime = System.nanoTime();
super.initMapActivity(app.mBMapMan);
iTime = System.nanoTime() - iTime;
Log.d("MapViewDemo", "the init time is " + iTime);
mMapView = (MapView) findViewById(R.id.bmapView);
mMapView.setBuiltInZoomControls(true);
mMapView.setDrawOverlayWhenZooming(true);
GeoPoint point = new GeoPoint((int) (24.91536 * 1e6),
(int) (118.6201 * 1e6));
mMapView.getController().setCenter(point);
mMapView.getController().setZoom(15); // 创建点击时的弹出泡泡
mPopView = super.getLayoutInflater().inflate(R.layout.popview, null);
mMapView.addView(mPopView, new MapView.LayoutParams(
LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, null,
MapView.LayoutParams.TOP_LEFT));
mPopView.setVisibility(View.GONE);
iZoom = mMapView.getZoomLevel();
我试了下还是会ANR 。 要把哪部分放在子线程呢?
那你主线程在干什么呢?最好显示一个进度吧。
那你主线程在干什么呢?最好显示一个进度吧。
主线程什么也没干了啊。