android - Accessing images saved by Chrome -


i'm writing folder watcher, have had working on devices, not devices seem save same location. i'm trying allow users save image web app, using chrome, presence of new file should kick off process.

on samsung galaxy tablet, images saving /mnt/sdcard/download/ , have no problems monitoring folder.

but on samsung galaxy iii phone, going here /storage/sdcard0/android/data/com.android.chrome/files/download i'm having permissions issues monitoring folder.

so guess question 2 fold. there simpler way of detecting these images saved to? using internal_content_uri , external_content_uri, doesn't me there phone.

if there issue accessing folder on phone, can resolve this?

i ended hard coding path following external_content_uri.

final string protectedpathtowatch = android.os.environment.getexternalstoragedirectory().tostring() + "/android/data/com.android.chrome/files/download/"; 

then read path, had add special permissions.

<uses-permission android:name="android.permission.development_tools"/> 

this apparently due security bug affects chrome. saving image generated canvas gets stored in system directory, same location cookies. until change behavior, 1 need use special permissions obtain access downloads.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -