Hi,

I was wondering if you could assist with a problem I have? I am using Crosswalk 
18+ in my PhoneGap application. I am using a standard html file input where I 
want to be able to select something from my device and send it to my server. 
All of that works fine but before I can select the file, it always asks me 
which action I want to perform (camera, video, audio recording or documents). 
Is there any way to remove this and directly open the file system?

I have looked a bit into the code of Crosswalk and to me it seems that it won't 
be easy to achieve because of these lines:
if (extraIntents.isEmpty() &&
               
mContent.hasPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
             if (takePictureIntent != null) extraIntents.add(takePictureIntent);
             extraIntents.add(camcorder);
             extraIntents.add(soundRecorder);
             contentSelectionIntent.setType(ANY_TYPES);
         }
(in runtime/android/core_internal/src/org/xwalk/core/internal/XWalkContent.java)

But is there maybe some trick I can use so that I don't have to select 
"documents" first? It looks like this: http://i.stack.imgur.com/Oz5Bx.jpg


It would be really nice if you could help me!


Have a nice day!

Martin

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to