Recommended file browser plugin

950 views
Skip to first unread message

Jason Mumby

unread,
Sep 12, 2014, 2:54:23 AM9/12/14
to phon...@googlegroups.com
Is there a plugin that allows you to browse the file system of the handset (android) and return the path of a selected file? 

For example if I had file.txt on the SD card it would return the path file://sdcard/file.txt

thx

Ronald K

unread,
Sep 12, 2014, 10:25:39 AM9/12/14
to phon...@googlegroups.com
I doubt it. There is the File plugin, https://github.com/apache/cordova-plugin-file/blob/master/doc/index.md , which gives read/write access to files on the device. A browsing system sounds like a do-it-yourself application to me.

Op vrijdag 12 september 2014 08:54:23 UTC+2 schreef Jason Mumby:

jcesarmobile

unread,
Sep 12, 2014, 11:23:29 AM9/12/14
to phon...@googlegroups.com

Jason Mumby

unread,
Sep 18, 2014, 2:59:06 AM9/18/14
to phon...@googlegroups.com
What exactly does ...

You will have to import your.package.name.R into the following java files.

    FileChooser.java 
    FileChooserActivity.java 
    FileListAdapter.java
    FileListFragment.java
    LocalStorageProvider.java
Mean?

jcesarmobile

unread,
Sep 18, 2014, 12:42:12 PM9/18/14
to phon...@googlegroups.com
You have to open that files and add the line

import your.package.name.R;

with the rest of imports

your.package.name is the java package, the one you tiped when you created your phonegap project

cordova create yourProject your.package.name yourProject

Сергей Абахов

unread,
Sep 19, 2014, 11:24:47 AM9/19/14
to phon...@googlegroups.com
Cordova/Phonegap plugin that supplies a File Chooser for Android 4+. The File Chooser does not require installation external file manager

https://github.com/MaginSoft/MFileChooser

пятница, 12 сентября 2014 г., 10:54:23 UTC+4 пользователь Jason Mumby написал:

Сергей Абахов

unread,
Sep 19, 2014, 11:27:36 AM9/19/14
to phon...@googlegroups.com
Cordova/Phonegap plugin that supplies a File Chooser for Android 4+. The File Chooser does not require installation external file manager

https://github.com/MaginSoft/MFileChooser

пятница, 12 сентября 2014 г., 10:54:23 UTC+4 пользователь Jason Mumby написал:
Is there a plugin that allows you to browse the file system of the handset (android) and return the path of a selected file? 

Jason Mumby

unread,
Sep 24, 2014, 6:25:40 AM9/24/14
to phon...@googlegroups.com
I created a test project and added the plugin via CLI. but when I build it I get this error ..

    [javac] C:\Documents and Settings\username\filebrowse\platforms\android\src\com\cesidiodibenedetto\filechooser\FileChooser.java:3: error: cannot find sym
bol
    [javac] import com.package.filebrowse;
    [javac]                 ^
    [javac]   symbol:   class filebrowse
    [javac]   location: package com.package

It has this error for each file I imported the package name. 

What have I missed?
Reply all
Reply to author
Forward
0 new messages