map is not showing correct location in my blackberry applications

Posted by Ali on Stack Overflow See other posts from Stack Overflow or by Ali
Published on 2012-10-10T09:35:16Z Indexed on 2012/10/10 9:36 UTC
Read the original article Hit count: 305

Filed under:
|

I am calling blackberry map by converting the real coordinates as you can see

     public static void showMap(String latitude,String longatude){
     try{

int specailLatitude=(int)(Double.parseDouble(latitude))*100000;
int specailLongatude=(int)(Double.parseDouble(longatude))*100000;
MapView mapView=new MapView();
mapView.setLatitude(specailLatitude);
mapView.setLongitude(specailLongatude);
mapView.setZoom(07);
MapsArguments arg=new MapsArguments(mapView);
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, arg);
}catch(Exception e){
CustomUtility.showToast("Map is not available "+e.getMessage());

}

 }// end of the showMap

but problem is this its now showing correct location , it always shows same location in UAE , please help that i am converting correctly ?

© Stack Overflow or respective owner

Related posts about blackberry

Related posts about map