<?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 Ariska - Adding a back button in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111962#M72643</link>
    <description>&lt;P&gt;Ariska - Adding a back button differs for different templates. Do you just want to create a back button by hand, or are you using a particular template? If you want backbuttons on a tab view, for example, take a look at the Yoga sample. In the Yoga sample app look at the bottom of the index.html file. The back buttons are enabled when you don't use the clearhistory() function.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2016 20:55:59 GMT</pubDate>
    <dc:creator>Pamela_H_Intel</dc:creator>
    <dc:date>2016-06-01T20:55:59Z</dc:date>
    <item>
      <title>Hardware Back button Event</title>
      <link>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111959#M72640</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; I want to track hardware back button event on my app for android. If user press hardware back button from device I want to track this event.&lt;/P&gt;

&lt;P&gt;I had tried these below function already but its not working anymore.&lt;/P&gt;

&lt;PRE class="prettyprint" style="box-sizing: border-box; margin-top: 1.6em; margin-bottom: 1.6em; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 1.6em; white-space: pre-wrap; clear: both; color: rgb(102, 102, 102); background-color: rgb(245, 245, 245);"&gt;&lt;CODE style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; line-height: 1.6em;"&gt;document.addEventListener("intel.xdk.device.ready",function() {

    //start grabbing the Android hardware back button
    intel.xdk.device.addVirtualPage(); 
    
},false);

        
document.addEventListener("intel.xdk.device.hardware.back", function() {
    
    //continue to grab the back button
    intel.xdk.device.addVirtualPage(); 
    
    document.getElementsByTagName("body")[0].innerHTML += "Hardware back button pressed
";
    
}, false); &lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently my app is based on appframework 3.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Anyone has idea how to do it right way?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 13:53:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111959#M72640</guid>
      <dc:creator>Puspad_s_</dc:creator>
      <dc:date>2015-12-17T13:53:07Z</dc:date>
    </item>
    <item>
      <title>I recommend using the Apache</title>
      <link>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111960#M72641</link>
      <description>&lt;P&gt;I recommend using the Apache Cordova "backbutton" event instead for tracking when the user presses the Android back button. You can find information at&amp;nbsp;&lt;A href="https://cordova.apache.org/docs/en/dev/cordova/events/events.backbutton.html"&gt;https://cordova.apache.org/docs/en/dev/cordova/events/events.backbutton.html&lt;/A&gt;. Currently, the intel.xdk apis are not being maintained for current mobile platform versions.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 20:43:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111960#M72641</guid>
      <dc:creator>Elroy_A_Intel</dc:creator>
      <dc:date>2015-12-17T20:43:41Z</dc:date>
    </item>
    <item>
      <title>Until now I still can not</title>
      <link>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111961#M72642</link>
      <description>&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN&gt;Until now I&lt;/SPAN&gt; &lt;SPAN&gt;still can not make&lt;/SPAN&gt; &lt;SPAN&gt;a back&lt;/SPAN&gt; &lt;SPAN&gt;button.&lt;/SPAN&gt; &lt;SPAN&gt;Does anyone know&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt; &lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 03:24:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111961#M72642</guid>
      <dc:creator>Ariska_Hidayat</dc:creator>
      <dc:date>2016-06-01T03:24:14Z</dc:date>
    </item>
    <item>
      <title>Ariska - Adding a back button</title>
      <link>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111962#M72643</link>
      <description>&lt;P&gt;Ariska - Adding a back button differs for different templates. Do you just want to create a back button by hand, or are you using a particular template? If you want backbuttons on a tab view, for example, take a look at the Yoga sample. In the Yoga sample app look at the bottom of the index.html file. The back buttons are enabled when you don't use the clearhistory() function.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:55:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111962#M72643</guid>
      <dc:creator>Pamela_H_Intel</dc:creator>
      <dc:date>2016-06-01T20:55:59Z</dc:date>
    </item>
    <item>
      <title>I have the same problem. But</title>
      <link>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111963#M72644</link>
      <description>&lt;P&gt;I have the same problem. But when I change theme into device native, or android - light or ios it works. Only when I use App Framework theme backbutton close the app.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 19:09:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Hardware-Back-button-Event/m-p/1111963#M72644</guid>
      <dc:creator>Joko_P_</dc:creator>
      <dc:date>2016-07-22T19:09:50Z</dc:date>
    </item>
  </channel>
</rss>

