Carlos Perez
Carlos Perez

Reputation: 435

Cordova won't open camera/select file android

Im working a small app that would access photos from a phone, I follow the direction located on the cordova website http://cordova.apache.org/docs/en/3.0.0/cordova_file_file.md.html#File I already installed the plugin but when I click the button to choose a photo nothing happens.

THis is how my config.xml looks:

<feature name="File">
        <param name="android-package" value="org.apache.cordova.file.FileUtils" />
        <param name="onload" value="true" />
    </feature>
    <feature name="FileTransfer">
        <param name="android-package" value="org.apache.cordova.filetransfer.FileTransfer" />
    </feature>

AndroidManifiest.xml

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

Upvotes: 0

Views: 1205

Answers (1)

Florence Foo
Florence Foo

Reputation: 141

What you need is a FileChooser plugin. The File plugin doesn't invoke any UI to let you choose file. https://www.google.com.au/search?q=Filechooser+cordova

Upvotes: 1

Related Questions