<?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 Dojox.mobile.switch not working on Android in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-mobile-switch-not-working-on-android/m-p/126755#M11748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the API v 3.5 and our company recently wants to produce for Android.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i made a mobile viewer with dojox mobile switches, but on android these are not working, they stick at half and the function wich detects the change of the mobile switch isnt called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;div dojoType="dojox.mobile.RoundRect" shadow="true"&amp;gt;
&amp;nbsp; &amp;lt;span class="bold"&amp;gt;POI Data&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;div class="mblSwRoundShape1 color1" id="switchPOI" dojoType="dojox.mobile.Switch" value="off" leftLabel="AAN" rightLabel="UIT"&amp;gt;&amp;lt;/div&amp;gt;
 &amp;lt;/div&amp;gt;

dojo.connect(dijit.byId("switchPOI"), "onStateChanged", function(newState){
&amp;nbsp;&amp;nbsp; POI(newState); // newState is "on" or "off"
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already saw a post from dojo that there was a bug: &lt;/SPAN&gt;&lt;A href="https://bugs.dojotoolkit.org/ticket/15936" rel="nofollow noopener noreferrer" target="_blank"&gt;https://bugs.dojotoolkit.org/ticket/15936&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;But it was already fixed in 1.8.1, and the API for JS uses 1.8.3, so why is this problem still occurring?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Version 3.5 of the ArcGIS API for JavaScript uses Dojo 1.8.3 as well as version 0.3.4 of dgrid, 0.3.1 of put-selector and 0.0.5 of xstyle. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a picture to show what i mean, keep in mind that the function isn't called when the switch is slided like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25865[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:11:44 GMT</pubDate>
    <dc:creator>DavidRaijmakers</dc:creator>
    <dc:date>2021-12-11T07:11:44Z</dc:date>
    <item>
      <title>Dojox.mobile.switch not working on Android</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-mobile-switch-not-working-on-android/m-p/126755#M11748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the API v 3.5 and our company recently wants to produce for Android.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i made a mobile viewer with dojox mobile switches, but on android these are not working, they stick at half and the function wich detects the change of the mobile switch isnt called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;div dojoType="dojox.mobile.RoundRect" shadow="true"&amp;gt;
&amp;nbsp; &amp;lt;span class="bold"&amp;gt;POI Data&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;div class="mblSwRoundShape1 color1" id="switchPOI" dojoType="dojox.mobile.Switch" value="off" leftLabel="AAN" rightLabel="UIT"&amp;gt;&amp;lt;/div&amp;gt;
 &amp;lt;/div&amp;gt;

dojo.connect(dijit.byId("switchPOI"), "onStateChanged", function(newState){
&amp;nbsp;&amp;nbsp; POI(newState); // newState is "on" or "off"
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already saw a post from dojo that there was a bug: &lt;/SPAN&gt;&lt;A href="https://bugs.dojotoolkit.org/ticket/15936" rel="nofollow noopener noreferrer" target="_blank"&gt;https://bugs.dojotoolkit.org/ticket/15936&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;But it was already fixed in 1.8.1, and the API for JS uses 1.8.3, so why is this problem still occurring?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Version 3.5 of the ArcGIS API for JavaScript uses Dojo 1.8.3 as well as version 0.3.4 of dgrid, 0.3.1 of put-selector and 0.0.5 of xstyle. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a picture to show what i mean, keep in mind that the function isn't called when the switch is slided like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25865[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-mobile-switch-not-working-on-android/m-p/126755#M11748</guid>
      <dc:creator>DavidRaijmakers</dc:creator>
      <dc:date>2021-12-11T07:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dojox.mobile.switch not working on Android</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-mobile-switch-not-working-on-android/m-p/126756#M11749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No one has a workaround, or knows when it'll be fixed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 08:09:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-mobile-switch-not-working-on-android/m-p/126756#M11749</guid>
      <dc:creator>DavidRaijmakers</dc:creator>
      <dc:date>2013-07-25T08:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dojox.mobile.switch not working on Android</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-mobile-switch-not-working-on-android/m-p/126757#M11750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi David, it's been awhile since this post but if it still helps, try changing your switch tags from from &amp;lt;div&amp;gt; to &amp;lt;input&amp;gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 16:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-mobile-switch-not-working-on-android/m-p/126757#M11750</guid>
      <dc:creator>RobSpeer</dc:creator>
      <dc:date>2013-09-20T16:01:53Z</dc:date>
    </item>
  </channel>
</rss>

