Hi Marco, Actually you can just give a prefix like "APP_FOLDER/" before the file name, and use deviceStorage.addNamed(blob, 'APP_FOLDER/' + filename); to save to a specific folder, it should also create your app folder(if it's existed yet) and save your files in that.
You can reference to this: https://developer.mozilla.org/en-US/docs/WebAPI/Device_Storage_API Cheers, Dominic ----- Original Message ----- From: "Marco Chen" <[email protected]> To: "dev-b2g" <[email protected]> Sent: Monday, March 18, 2013 6:03:45 PM Subject: [b2g] [Device Storage] How does App show pictures which recived or created by itself? Hi all, In the case of Line app in Android, Line can show up the pictures received or created by itself to user. And Line search these pictures on a specific folders. As I know that Gaia can only call DeviceStorage to save files but can't indicate the path. If an app want to do this, it can't rely on a specific folders. So how do app achieve this feature? ex: filter by name or ... Thanks. Sincerely yours. ------------------------------------- Marco Chen System Engineer in Firefox OS Mozilla Taiwan Tel: +886-2-87861100 # 352 mail: [email protected] _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
