最近小弟在做Android的地图应用程序设计,一切工作准备好后。地图显示出来了,但是程序需要一个查找地点并在地图上显示出来的功能,小弟写完功能代码后,总也返回不了地址信息。经验证:address为空,并且LogCat输出:Couldn't get connection factory client
求指教!
代码如下:
 try{
        List<Address> address=coder.getFromLocationName("北京市", 1);
    if(!address.isEmpty())
    {
        Address add=address.get(0);
        double geolatitude=add.getLatitude();
        double geolongtitude=add.getLongitude();
        GeoPoint geo1=new GeoPoint((int)(geolatitude*1E6),(int)(geolongtitude*1E6));
        mc.setCenter(geo1);
        
    }
        }
        catch(Exception e)
        {
         e.printStackTrace();
        }