<?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 Re: Custom LocationDataSource error on Start in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/custom-locationdatasource-error-on-start/m-p/438486#M2973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel -&amp;nbsp;can you add more information about the exception - the AddtionalMessage, ErrorCode, ErrorDomain, and also all the details from the Cause if that's set. Also post more information about your custom location&amp;nbsp;data source class -&amp;nbsp;what happens in your startup code?&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I tried calling the method with an Exception object but then&amp;nbsp;the LocationDataSource&amp;nbsp;wouldn't start at all.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You'd pass in an exception to the start completed if your own code&amp;nbsp;caught an exception and then wanted to pass that back to the&amp;nbsp;location listeners to indicate to consumers that the startup failed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 09:57:54 GMT</pubDate>
    <dc:creator>ShellyGill1</dc:creator>
    <dc:date>2018-01-09T09:57:54Z</dc:date>
    <item>
      <title>Custom LocationDataSource error on Start</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/custom-locationdatasource-error-on-start/m-p/438485#M2972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a custom LocationDataSource class. It works all fine but sometimes there is&amp;nbsp;ArcGISRuntimeException thrown by the onStartCompleted method and sometimes everything works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #bbb529;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;protected void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onStart&lt;/SPAN&gt;() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; onStartCompleted(&lt;SPAN style="color: #cc7832;"&gt;null&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;The stack trace is:&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="background-color: #f6f6f6;"&gt;at de.fxreality.aRFragment.slidePanel.MyLocationDataSource.onStart(MyLocationDataSource.java:16) is linked to the onStartCompleted method)&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;E/AndroidRuntime: FATAL EXCEPTION: Thread-8848&lt;BR /&gt; Process: de.fxreality, PID: 11112&lt;BR /&gt; Theme: themes:{}&lt;BR /&gt; com.esri.arcgisruntime.ArcGISRuntimeException: Invalid argument&lt;BR /&gt; at com.esri.arcgisruntime.internal.jni.CoreLocationDataSource.nativeHandleStart(Native Method)&lt;BR /&gt; at com.esri.arcgisruntime.internal.jni.CoreLocationDataSource.a(SourceFile:125)&lt;BR /&gt; at com.esri.arcgisruntime.location.LocationDataSource.onStartCompleted(SourceFile:326)&lt;BR /&gt; at de.fxreality.aRFragment.slidePanel.MyLocationDataSource.onStart(MyLocationDataSource.java:16)&lt;BR /&gt; at com.esri.arcgisruntime.location.LocationDataSource$a$1.run(SourceFile:457)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:818)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Maybe someone can tell me what the problem is. I can't find any solution to it. I tried calling the method with an Exception object but then&amp;nbsp;the LocationDataSource&amp;nbsp;wouldn't start at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/custom-locationdatasource-error-on-start/m-p/438485#M2972</guid>
      <dc:creator>DanielKilimnik</dc:creator>
      <dc:date>2021-12-11T19:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom LocationDataSource error on Start</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/custom-locationdatasource-error-on-start/m-p/438486#M2973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel -&amp;nbsp;can you add more information about the exception - the AddtionalMessage, ErrorCode, ErrorDomain, and also all the details from the Cause if that's set. Also post more information about your custom location&amp;nbsp;data source class -&amp;nbsp;what happens in your startup code?&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I tried calling the method with an Exception object but then&amp;nbsp;the LocationDataSource&amp;nbsp;wouldn't start at all.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You'd pass in an exception to the start completed if your own code&amp;nbsp;caught an exception and then wanted to pass that back to the&amp;nbsp;location listeners to indicate to consumers that the startup failed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 09:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/custom-locationdatasource-error-on-start/m-p/438486#M2973</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2018-01-09T09:57:54Z</dc:date>
    </item>
  </channel>
</rss>

