<?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 The Android webviews are not in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026018#M40148</link>
    <description>&lt;P&gt;The Android webviews are not very good about this. If you use the Cordova geo plugin it will defer to the builtin geo if it finds it there, otherwise it will use the plugin implementation. Don't use the Android webviews, that's the main source of your troubles. Use the Android-Crosswalk build instead. I recommend you set the Crosswalk build to 14.&lt;/P&gt;

&lt;P&gt;Also, try the geo code in this example, it's more complete: &lt;A href="https://github.com/xmnboy/hello-cordova" target="_blank"&gt;https://github.com/xmnboy/hello-cordova&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2015 18:58:36 GMT</pubDate>
    <dc:creator>PaulF_IntelCorp</dc:creator>
    <dc:date>2015-07-27T18:58:36Z</dc:date>
    <item>
      <title>Geolocation on Android in XDK, again</title>
      <link>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026015#M40145</link>
      <description>&lt;P&gt;I had a test app that used Cordova geolocation, but no longer works. From what I have read, Cordova has deprecated their geolocation plugin in favor of HTML 5 native geolocation. I've tried that with the code below and it works in the emulator and debug mode, but not in an Android XDK build. I've read previous posts that suggest using the Intel geolocation, but that plugin is still marked as deprecated. What is the correct way to do geolocation in the XDK for multiplatform development.&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;function getLocation() {
    if (navigator.geolocation) {
        navigator.geolocation.watchPosition(showPosition, showError);
    } else {
        alert("Geolocation is not supported by this browser.");
    }
}
function showPosition(position) {
    alert("location found");
}
function showError(error) {
    alert("error");
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2015 01:29:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026015#M40145</guid>
      <dc:creator>Bill_D_1</dc:creator>
      <dc:date>2015-07-26T01:29:59Z</dc:date>
    </item>
    <item>
      <title>You should follow the code</title>
      <link>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026016#M40146</link>
      <description>&lt;P&gt;You should follow the code snippets found here&amp;nbsp;&lt;A href="https://github.com/apache/cordova-plugin-geolocation"&gt;https://github.com/apache/cordova-plugin-geolocation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 16:45:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026016#M40146</guid>
      <dc:creator>John_H_Intel2</dc:creator>
      <dc:date>2015-07-27T16:45:47Z</dc:date>
    </item>
    <item>
      <title>Thanks for the quick reply.</title>
      <link>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026017#M40147</link>
      <description>&lt;P&gt;Thanks for the quick reply. That is the code I had and did not work when I used the XDK Android build process. I'll check it carefully and try it again.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 18:11:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026017#M40147</guid>
      <dc:creator>Bill_D_1</dc:creator>
      <dc:date>2015-07-27T18:11:31Z</dc:date>
    </item>
    <item>
      <title>The Android webviews are not</title>
      <link>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026018#M40148</link>
      <description>&lt;P&gt;The Android webviews are not very good about this. If you use the Cordova geo plugin it will defer to the builtin geo if it finds it there, otherwise it will use the plugin implementation. Don't use the Android webviews, that's the main source of your troubles. Use the Android-Crosswalk build instead. I recommend you set the Crosswalk build to 14.&lt;/P&gt;

&lt;P&gt;Also, try the geo code in this example, it's more complete: &lt;A href="https://github.com/xmnboy/hello-cordova" target="_blank"&gt;https://github.com/xmnboy/hello-cordova&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 18:58:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Geolocation-on-Android-in-XDK-again/m-p/1026018#M40148</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2015-07-27T18:58:36Z</dc:date>
    </item>
  </channel>
</rss>

