<?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: Compression of a bitmap is slow in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/compression-of-a-bitmap-is-slow/m-p/1584198#M552</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/713291"&gt;@dev4567&lt;/a&gt;&amp;nbsp;for reaching out regarding this issue. I can confirm this would be a warning displayed when constructing the LocationDisplay with&amp;nbsp;StrictMode enabled. We have logged this issue and will provide a fix in a future release.&lt;/P&gt;&lt;P&gt;Meanwhile, if you're looking for a way to resolve the warning currently, I would recommend creating the LocationDisplay while in a coroutine scope and not on the main thread.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 19:57:53 GMT</pubDate>
    <dc:creator>Shubham_Sharma</dc:creator>
    <dc:date>2025-02-11T19:57:53Z</dc:date>
    <item>
      <title>Compression of a bitmap is slow</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/compression-of-a-bitmap-is-slow/m-p/1579175#M546</link>
      <description>&lt;P&gt;`StrictMode` policy indicates that `LocationDisplay` loads a bitmap in the Main thread and it's slow:&lt;/P&gt;&lt;P&gt;`android.os.strictmode.CustomViolation: Compression of a bitmap is slow`&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dev4567_0-1738000533061.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/124102iC4C8A1E4C2BAC6E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="dev4567_0-1738000533061.png" alt="dev4567_0-1738000533061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the policy is being setup in the Application by simply:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;StrictMode.setThreadPolicy(&lt;/SPAN&gt;&lt;BR /&gt;    Builder()&lt;BR /&gt;        .detectAll()&lt;BR /&gt;        .penaltyLog()&lt;BR /&gt;        .build()&lt;BR /&gt;)&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Jan 2025 17:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/compression-of-a-bitmap-is-slow/m-p/1579175#M546</guid>
      <dc:creator>dev4567</dc:creator>
      <dc:date>2025-01-27T17:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compression of a bitmap is slow</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/compression-of-a-bitmap-is-slow/m-p/1584198#M552</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/713291"&gt;@dev4567&lt;/a&gt;&amp;nbsp;for reaching out regarding this issue. I can confirm this would be a warning displayed when constructing the LocationDisplay with&amp;nbsp;StrictMode enabled. We have logged this issue and will provide a fix in a future release.&lt;/P&gt;&lt;P&gt;Meanwhile, if you're looking for a way to resolve the warning currently, I would recommend creating the LocationDisplay while in a coroutine scope and not on the main thread.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 19:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/compression-of-a-bitmap-is-slow/m-p/1584198#M552</guid>
      <dc:creator>Shubham_Sharma</dc:creator>
      <dc:date>2025-02-11T19:57:53Z</dc:date>
    </item>
  </channel>
</rss>

