<?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 ArcGIS runtime for Android, map view location display crashes app in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711146#M8952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The app will use the map view's location display to show own location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On enabling location display, if the user switches between 2 fragments (map &amp;amp; some other fragment) multiple times, the app will crash. Just before the app crashes, opening the drawer will be sluggish and then eventually crash. Disabling the location display however will not crash the app with fast response on drawer interaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a limited number of devices only and the crash seem to affect Samsung devices running Oreo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a sample app replicating this. Try commenting/uncommenting line 72 &amp;amp; 93 of MapFragment.cs file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The device used are:&lt;/P&gt;&lt;P&gt;Samsung S8+&lt;/P&gt;&lt;P&gt;Oreo 8.0, Samung Experience 9&lt;/P&gt;&lt;P&gt;ArcGIS Runtime, v100.4.0&lt;/P&gt;&lt;P&gt;VS 2017 Professional, v15.9.4&lt;/P&gt;&lt;P&gt;Xamarin android SDK, v9.1.4.2&lt;/P&gt;&lt;P&gt;Xamarin, v4.12.3.77&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2019 06:14:31 GMT</pubDate>
    <dc:creator>EdL</dc:creator>
    <dc:date>2019-01-23T06:14:31Z</dc:date>
    <item>
      <title>ArcGIS runtime for Android, map view location display crashes app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711146#M8952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The app will use the map view's location display to show own location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On enabling location display, if the user switches between 2 fragments (map &amp;amp; some other fragment) multiple times, the app will crash. Just before the app crashes, opening the drawer will be sluggish and then eventually crash. Disabling the location display however will not crash the app with fast response on drawer interaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a limited number of devices only and the crash seem to affect Samsung devices running Oreo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a sample app replicating this. Try commenting/uncommenting line 72 &amp;amp; 93 of MapFragment.cs file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The device used are:&lt;/P&gt;&lt;P&gt;Samsung S8+&lt;/P&gt;&lt;P&gt;Oreo 8.0, Samung Experience 9&lt;/P&gt;&lt;P&gt;ArcGIS Runtime, v100.4.0&lt;/P&gt;&lt;P&gt;VS 2017 Professional, v15.9.4&lt;/P&gt;&lt;P&gt;Xamarin android SDK, v9.1.4.2&lt;/P&gt;&lt;P&gt;Xamarin, v4.12.3.77&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 06:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711146#M8952</guid>
      <dc:creator>EdL</dc:creator>
      <dc:date>2019-01-23T06:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS runtime for Android, map view location display crashes app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711147#M8953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you connect with logcat while reproducing the crash, and share what is reported for the apps's process ID when it crashes? This will also ensure that if we're able to reproduce, we can confirm whether we are seeing the same type of crash, and the logcat alone might give us a good indicator what is going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 18:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711147#M8953</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2019-01-29T18:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS runtime for Android, map view location display crashes app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711148#M8954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the sample, it appears the problem you're having is that you're not requesting the ACCESS_FINE_LOCATION permission.&amp;nbsp; First, you need to have this permission included in your manifest.&amp;nbsp; I'm guessing you've already done that in your production app and just overlooked it in your little reproducer app.&amp;nbsp; The part that's easier to miss is that, on Android 6.0 (API 23) and up, you also need to explicitly include logic in your app to request this permission at run-time.&amp;nbsp; Resources on that include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/permissions?tabs=windows#runtime-permission-checks-in-android-60" rel="nofollow noopener noreferrer" target="_blank"&gt;https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/permissions?tabs=windows#runtime-permission-checks-in-android-60&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://developer.android.com/guide/topics/permissions/overview" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developer.android.com/guide/topics/permissions/overview&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A class="link-titled" href="https://stackoverflow.com/a/32084038/2666012" title="https://stackoverflow.com/a/32084038/2666012" rel="nofollow noopener noreferrer" target="_blank"&gt;java - Android "gps requires ACCESS_FINE_LOCATION" error, even though my manifest file contains this - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's&amp;nbsp;definitely NOT intuitive to add that logic, however (at least I don't find it so), so I've taken the liberty of updating your sample with the necessary code and have attached that.&amp;nbsp; The relevant pieces of code are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implement ActivityCompat.IOnRequestPermissionsCallback in your MainActivity, checking that the response is coming from a location permissions check, and raising a notification for your fragment to handle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/// &amp;lt;summary&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/// Handle the user-specified response from a request for permissions&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;/// &amp;lt;/summary&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;OnRequestPermissionsResult&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; requestCode&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;string&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; permissions&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Android&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PM&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Permission&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; grantResults&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;// Check that the response is coming from our request for location permissions&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;requestCode &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; LocationPermissionsRequestCode &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; grantResults&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Length &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;// Raise the response received event so subscribers can respond accordingly&lt;/SPAN&gt;
        LocationPermissionResponseReceived&lt;SPAN class="operator token"&gt;?&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Invoke&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; grantResults&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Arbitrary number (no greater than 65535) to use in distinguishing the location permissions request from other requests&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;internal&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; LocationPermissionsRequestCode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;32987&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Event that will be raised when a response to a location permissions request is received&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;internal&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;event&lt;/SPAN&gt; EventHandler&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Android&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PM&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Permission&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; LocationPermissionResponseReceived&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your fragment, verify that&amp;nbsp;location permission has been granted before enabling location display.&amp;nbsp; If it hasn't been, request it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// Check if location permission has been granted&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ContextCompat&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CheckSelfPermission&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Context&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Android&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Manifest&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Permission&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AccessFineLocation&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; Android&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PM&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Permission&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Granted&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;// Location permission was granted, so go ahead and turn on location display&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;//// Bug: Enabling the LocationDisplay will cause the app to crash when switching between drawer items&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LocationDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsEnabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="comment token"&gt;// Location permission has not yet been granted, so request it&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;// Get the fragment's activity as the specific MainActivity type so we can hook to its LocationPermissionResponseReceived evetn&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; mainActivity &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;MainActivity&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Activity&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;// Wire up an event handler to listen for when a user response to the request for location permission is received&lt;/SPAN&gt;
    EventHandler&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Android&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PM&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Permission&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; locationPermissionResponseReceivedHandler &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    locationPermissionResponseReceivedHandler &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;o&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;// Unhook from the event&lt;/SPAN&gt;
        mainActivity&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LocationPermissionResponseReceived &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; locationPermissionResponseReceivedHandler&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

        &lt;SPAN class="comment token"&gt;// If the user-response was to grant the permission, then turn location display on&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;e &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; Android&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PM&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Permission&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Granted&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LocationDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IsEnabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;// Subscribe to the event that will be raised when the user-response is received.&lt;/SPAN&gt;
    mainActivity&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LocationPermissionResponseReceived &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; locationPermissionResponseReceivedHandler&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;// Issue the permissions request&lt;/SPAN&gt;
    Android&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Support&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;V4&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;App&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ActivityCompat&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;RequestPermissions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Activity&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// The activity implementing ActivityCompat.IOnRequestPermissionsResultCallback and that will be notified of the user response&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;string&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; Android&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Manifest&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Permission&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AccessFineLocation &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// The permissions being requested&lt;/SPAN&gt;
        MainActivity&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LocationPermissionsRequestCode &lt;SPAN class="comment token"&gt;// The arbitrary code that will distinguish this particular request when handling the response&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711148#M8954</guid>
      <dc:creator>RichZwaap</dc:creator>
      <dc:date>2021-12-12T06:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS runtime for Android, map view location display crashes app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711149#M8955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zwaap, sorry for the late reply (off on Lunar New Year week).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the updating the sample with permission granting.&lt;/P&gt;&lt;P&gt;Unfortunately, the error is still occurring (app freeze/crash) after toggling a few times. I have attached logs from logcat the ANR trace logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope some insights can be found from them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 03:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711149#M8955</guid>
      <dc:creator>EdL</dc:creator>
      <dc:date>2019-02-11T03:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS runtime for Android, map view location display crashes app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711150#M8956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are there any new findings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2019 09:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711150#M8956</guid>
      <dc:creator>EdL</dc:creator>
      <dc:date>2019-02-18T09:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS runtime for Android, map view location display crashes app</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711151#M8957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are there any new findings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 10:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/arcgis-runtime-for-android-map-view-location/m-p/711151#M8957</guid>
      <dc:creator>STEEInfo</dc:creator>
      <dc:date>2019-02-27T10:26:56Z</dc:date>
    </item>
  </channel>
</rss>

