skydragon10

Will you come across mResult have no data when you are using RoutingTask?

Discussion created by skydragon10 on Sep 9, 2013
I test a route program(A) in android-phone(A).I set the parameter like this:
RoutingParameters rpParameters=new RoutingParameters();
       NAFeaturesAsFeature rafaAsFeature=new NAFeaturesAsFeature();
      
       StopGraphic point1=new StopGraphic(pointClicked);
       StopGraphic point2=new StopGraphic(PoiLocation);
       rafaAsFeature.setFeatures(new Graphic[]{point1,point2});
       rafaAsFeature.setCompressedRequest(true);
       rpParameters.setStops(rafaAsFeature);
       rpParameters.setOutSpatialReference(egs);//not use the wm
       rpParameters.setDirectionsLengthUnit(DirectionsLengthUnit.METERS);
      
       RoutingTask rTask=new RoutingTask("http://192.168.1.101/ArcGIS/rest/services/Poibike/NAServer/Route");//119.422, 32.187;119.45,32.2
      
       mResult=rTask.solve(rpParameters);
       mHandler.post(mUpdateResults);
eclipses shows that mResult have no data.When i test this program in another android-phone(B),the program runs normally.PS:A can runs another route-program normally.what the problems,how could solve this matter?

Outcomes