- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for sharing!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Maybe this it not the correct place, but I have discovered a bug in android code of the Intel XDK Cache plugin (intel.xdk.cache), and solved it too!
We are developing an Android App where users can store different images locally. We are using the MediaCache for storing the files on the device.I have already posted it on the Intel XDK Cache GitHub project page, but I share it here too, to share the problem.
Files can be added to the cache by using the methods AddMediaCache or AddMediaCacheExt, the index is than incremented every time a file is added. So far so good. But if I kill the App and restart the App again, the index starts from 0 again and the old stored indexed files are overwritten by the new cached files!
After reviewing the Android code for the methods "AddMediaCache" and ""AddMediaCacheExt" I discover that in the private function "getFilenameWithURL", the code
is using the wrong caching directory, or better: no path at all.
After adding the path "cachedMediaDirectory" to the File function,
the index is calculated correctly and new cached files are getting the right index number, even after restarting the App.
I don't know if the iOS and Windows platforms are also effected by this problem (at this time I can only test/debug Android Apps), but it's likely that
Maybe this issue is solved in the new release of the plugin, if not take your advantaged of this post!