<?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 I think there's a bug in App in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065507#M56000</link>
    <description>&lt;P&gt;I think there's a bug in App Preview that prevents you from seeing that backbutton event. Try a building a simple app and testing it in a built app.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2015 22:37:02 GMT</pubDate>
    <dc:creator>PaulF_IntelCorp</dc:creator>
    <dc:date>2015-11-12T22:37:02Z</dc:date>
    <item>
      <title>device backbutton event does not fire</title>
      <link>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065504#M55997</link>
      <description>&lt;P&gt;Testing Android app with App Preview on Galaxy S5 Android version 5.0. Also debugging via USB debugging through Chrome. Intel XDK version 2673. Tried using Cordova version 4.1.2 and 5.1.1. Tried with and without the Cordova device plugin.&lt;/P&gt;

&lt;P&gt;Couldn't capture the back button event on my main project, so I made a side simple HTML5 + Cordova project and copied in the back button event template from the Cordova docs, and the onLoad and DeviceReady functions both fire, but the backbutton event is never captured - just like on my main project. Any help would be appreciated:&lt;/P&gt;

&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;
	&amp;lt;html&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;lt;head&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;Back Button Example&amp;lt;/title&amp;gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script type="text/javascript" charset="utf-8" src="cordova.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script type="text/javascript" charset="utf-8"&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; function onLoad() {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.addEventListener("deviceready", onDeviceReady, false);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; }&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; function onDeviceReady() {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Register the event listener&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.addEventListener("backbutton", onBackKeyDown, false);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; }&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; function onBackKeyDown() {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert("HI");&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; }&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;lt;body onload="onLoad()"&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; back doesn't work&lt;BR /&gt;
	&amp;nbsp; &amp;lt;/body&amp;gt;&lt;BR /&gt;
	&amp;lt;/html&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 16:15:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065504#M55997</guid>
      <dc:creator>X_2</dc:creator>
      <dc:date>2015-11-12T16:15:26Z</dc:date>
    </item>
    <item>
      <title>In order to capture the</title>
      <link>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065505#M55998</link>
      <description>&lt;P&gt;In order to capture the pressing of the back button on your Android device, you are required &amp;nbsp;to add the following code:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;document.addEventListener("backbutton", yourCallbackFunction, false);

function yourCallbackFunction() {
    //Handle the back button
}&lt;/PRE&gt;

&lt;P&gt;The above event handler is supported on Android. For more information in regards to this and other Cordova lifecycle events, visit&amp;nbsp;&lt;A href="https://cordova.apache.org/docs/en/4.0.0/cordova/events/events.html"&gt;https://cordova.apache.org/docs/en/4.0.0/cordova/events/events.html&lt;/A&gt;&amp;nbsp;for Cordova 4 and&amp;nbsp;&lt;A href="https://cordova.apache.org/docs/en/latest/cordova/events/events.html"&gt;https://cordova.apache.org/docs/en/latest/cordova/events/events.html&lt;/A&gt;&amp;nbsp;for Cordova 5.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 17:17:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065505#M55998</guid>
      <dc:creator>Elroy_A_Intel</dc:creator>
      <dc:date>2015-11-12T17:17:47Z</dc:date>
    </item>
    <item>
      <title>That is literally the code I</title>
      <link>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065506#M55999</link>
      <description>&lt;P&gt;That is literally the code I posted above, saying it is not working. And you link me to the page where I said I got the code from. Can you try to provide some reason as to why my code may not be working?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 19:43:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065506#M55999</guid>
      <dc:creator>X_2</dc:creator>
      <dc:date>2015-11-12T19:43:14Z</dc:date>
    </item>
    <item>
      <title>I think there's a bug in App</title>
      <link>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065507#M56000</link>
      <description>&lt;P&gt;I think there's a bug in App Preview that prevents you from seeing that backbutton event. Try a building a simple app and testing it in a built app.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 22:37:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065507#M56000</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2015-11-12T22:37:02Z</dc:date>
    </item>
    <item>
      <title>Paul you are correct. We</title>
      <link>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065508#M56001</link>
      <description>&lt;P&gt;Paul you are correct. We released a beta of our app to the store for testing, downloaded it through there and the back button trigger worked properly.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 13:17:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/device-backbutton-event-does-not-fire/m-p/1065508#M56001</guid>
      <dc:creator>X_2</dc:creator>
      <dc:date>2015-11-13T13:17:01Z</dc:date>
    </item>
  </channel>
</rss>

