<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic online routing task problem  in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/online-routing-task-problem/m-p/38337#M317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i run this code it does not give me any error put it stop at&amp;nbsp;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,task.getNetworkDescription().getName());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RouteParameters parameters = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RouteTask task = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;try &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; task = RouteTask.&lt;SPAN style="font-style: italic;"&gt;createOnlineRouteTask&lt;/SPAN&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FNetworkAnalysis%2FSanDiego%2FNAServer%2FRoute" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,task.getNetworkDescription().getName());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; parameters = task.retrieveDefaultRouteTaskParameters();&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"142"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; parameters.setOutSpatialReference(mMap.getSpatialReference());&lt;/P&gt;&lt;P&gt;&amp;nbsp; NAFeaturesAsFeature naFeatures = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;NAFeaturesAsFeature();&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"1"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Point startPoint = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Point(-&lt;SPAN style="color: #0000ff;"&gt;119.866896&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;36.793653&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Point stopPoint = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Point(-&lt;SPAN style="color: #0000ff;"&gt;119.853345&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;36.795488&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; StopGraphic startPnt = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;StopGraphic(startPoint);&lt;/P&gt;&lt;P&gt;&amp;nbsp; StopGraphic stopPnt = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;StopGraphic(stopPoint);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"2"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; naFeatures.setFeatures(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Graphic[] {startPnt, stopPnt});&lt;/P&gt;&lt;P&gt;&amp;nbsp; naFeatures.setSpatialReference(mMap.getSpatialReference());&lt;/P&gt;&lt;P&gt;&amp;nbsp; parameters.setStops(naFeatures);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RouteResult result = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; result = task.solve(parameters);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;, result.getStops().toString()) ;&lt;/P&gt;&lt;P&gt;} &lt;SPAN style="color: #000080; font-weight: bold;"&gt;catch &lt;/SPAN&gt;(Exception e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 May 2016 12:51:45 GMT</pubDate>
    <dc:creator>tohamihussin1</dc:creator>
    <dc:date>2016-05-29T12:51:45Z</dc:date>
    <item>
      <title>online routing task problem</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/online-routing-task-problem/m-p/38337#M317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i run this code it does not give me any error put it stop at&amp;nbsp;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,task.getNetworkDescription().getName());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RouteParameters parameters = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RouteTask task = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;try &lt;/SPAN&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; task = RouteTask.&lt;SPAN style="font-style: italic;"&gt;createOnlineRouteTask&lt;/SPAN&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FNetworkAnalysis%2FSanDiego%2FNAServer%2FRoute" rel="nofollow" target="_blank"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,task.getNetworkDescription().getName());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; parameters = task.retrieveDefaultRouteTaskParameters();&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"142"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; parameters.setOutSpatialReference(mMap.getSpatialReference());&lt;/P&gt;&lt;P&gt;&amp;nbsp; NAFeaturesAsFeature naFeatures = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;NAFeaturesAsFeature();&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"1"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Point startPoint = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Point(-&lt;SPAN style="color: #0000ff;"&gt;119.866896&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;36.793653&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Point stopPoint = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Point(-&lt;SPAN style="color: #0000ff;"&gt;119.853345&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;36.795488&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; StopGraphic startPnt = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;StopGraphic(startPoint);&lt;/P&gt;&lt;P&gt;&amp;nbsp; StopGraphic stopPnt = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;StopGraphic(stopPoint);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;,&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"2"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; naFeatures.setFeatures(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;Graphic[] {startPnt, stopPnt});&lt;/P&gt;&lt;P&gt;&amp;nbsp; naFeatures.setSpatialReference(mMap.getSpatialReference());&lt;/P&gt;&lt;P&gt;&amp;nbsp; parameters.setStops(naFeatures);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RouteResult result = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; result = task.solve(parameters);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;e&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"result" &lt;/SPAN&gt;, result.getStops().toString()) ;&lt;/P&gt;&lt;P&gt;} &lt;SPAN style="color: #000080; font-weight: bold;"&gt;catch &lt;/SPAN&gt;(Exception e) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; e.printStackTrace();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2016 12:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/online-routing-task-problem/m-p/38337#M317</guid>
      <dc:creator>tohamihussin1</dc:creator>
      <dc:date>2016-05-29T12:51:45Z</dc:date>
    </item>
  </channel>
</rss>

