<?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 Try searching our primary in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/intel-xdk-cache-addToMediaCacheExt-bug/m-p/1040752#M45926</link>
    <description>&lt;P&gt;Try searching our primary forum for a few tidbits, I'm not that familiar with this particular API, and there are many more answers on the other forum. This forum will become the primary forum later this year or early next year, when we resolve our single sign on backend system.&lt;/P&gt;

&lt;P&gt;Try this in a Google search bar: "site:forums.html5dev-software.intel.com addToMediaCacheExt"&lt;/P&gt;</description>
    <pubDate>Sat, 20 Sep 2014 19:26:19 GMT</pubDate>
    <dc:creator>PaulF_IntelCorp</dc:creator>
    <dc:date>2014-09-20T19:26:19Z</dc:date>
    <item>
      <title>intel.xdk.cache.addToMediaCacheExt bug</title>
      <link>https://community.intel.com/t5/Software-Archive/intel-xdk-cache-addToMediaCacheExt-bug/m-p/1040750#M45924</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I would need help. I think I found a bug in the framework. I&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;am using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;intel.xdk.cache.addToMediaCacheExt method to download content from web.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;After the content is downloaded the frwamework assigns for every donwloaded content a new local url:&lt;/P&gt;

&lt;P&gt;remote url: &lt;A href="www.xxxxxxx.com/xxxxx.txt&amp;nbsp;" target="_blank"&gt;www.xxxxxxx.com/xxxxx.txt&amp;nbsp;&lt;/A&gt;;&lt;/P&gt;

&lt;P&gt;the local url will be:&lt;/P&gt;

&lt;P&gt;file:///data/data/app.com/_mediacache/0.txt&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So it seems the local urls are converted numbered file names:&lt;/P&gt;

&lt;P&gt;0.txt&lt;/P&gt;

&lt;P&gt;1.png&lt;/P&gt;

&lt;P&gt;2.mp3&lt;/P&gt;

&lt;P&gt;and so on.&lt;/P&gt;

&lt;P&gt;It's working.&lt;/P&gt;

&lt;P&gt;BUT: I start my application, donwload my content first time, it is ok. After when I terminate my application and restart it, and download some other content with the above written method and the local url's will be the same (0.txt, 1.png, and so on), which means the numbered file names will be the same, so the previously downloaded content will be overwritten by new file with the same name.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The remote urls are everytime different and I am using different unique id:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;var uniqueID=Math.floor(Math.random() * 100000);&lt;/P&gt;

&lt;P&gt;intel.xdk.cache.addToMediaCacheExt(acturl1,uniqueID);&lt;/P&gt;

&lt;P&gt;where acturl1 is everytime different file names. But still the local urls are the same.&lt;/P&gt;

&lt;P&gt;Can you help me how to solve this, because it seems to be buggy.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&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;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 05:23:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/intel-xdk-cache-addToMediaCacheExt-bug/m-p/1040750#M45924</guid>
      <dc:creator>erik_a_1</dc:creator>
      <dc:date>2014-09-05T05:23:17Z</dc:date>
    </item>
    <item>
      <title>Additional information:</title>
      <link>https://community.intel.com/t5/Software-Archive/intel-xdk-cache-addToMediaCacheExt-bug/m-p/1040751#M45925</link>
      <description>&lt;P&gt;Additional information:&lt;/P&gt;

&lt;P&gt;- in the app preview the same problem on the device&lt;/P&gt;

&lt;P&gt;- after building an apk for andorid the same problem on the device&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2014 05:25:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/intel-xdk-cache-addToMediaCacheExt-bug/m-p/1040751#M45925</guid>
      <dc:creator>erik_a_1</dc:creator>
      <dc:date>2014-09-05T05:25:15Z</dc:date>
    </item>
    <item>
      <title>Try searching our primary</title>
      <link>https://community.intel.com/t5/Software-Archive/intel-xdk-cache-addToMediaCacheExt-bug/m-p/1040752#M45926</link>
      <description>&lt;P&gt;Try searching our primary forum for a few tidbits, I'm not that familiar with this particular API, and there are many more answers on the other forum. This forum will become the primary forum later this year or early next year, when we resolve our single sign on backend system.&lt;/P&gt;

&lt;P&gt;Try this in a Google search bar: "site:forums.html5dev-software.intel.com addToMediaCacheExt"&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2014 19:26:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/intel-xdk-cache-addToMediaCacheExt-bug/m-p/1040752#M45926</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2014-09-20T19:26:19Z</dc:date>
    </item>
  </channel>
</rss>

