Git Product home page Git Product logo

android-file-dialog's People

Contributors

lamerman avatar

Watchers

 avatar

android-file-dialog's Issues

Please Add multiple file selection

This isn't really an issue but rather a suggestion.
Please add the ability to select more than one file and return the string array 
or uri array. Maybe add a checkbox alongside the file name.
Thank you.

Original issue reported on code.google.com by [email protected] on 28 Feb 2014 at 12:16

Exception in getDirImpl if the list of files in the start directory is empty

At least with Android 2.2, f.listFiles() returns null if there are no child 
files in the selected directory (for example "/sdcard" on the emulator.

So (File file : files) will fail with a NullPointerException in this case. You 
could add before a guard like: 
if (files != null) ...

Then the dialog will work OK. I don't know if the origin of this problem is an 
issue in Android 2.2 or just a protection worth to be added to the dialog.

In Java listFiles() returns an empty list (not null) if there is nothing in the 
directory, but I don't know if the "/sdcard" path exist on the emulator by 
default.

Original issue reported on code.google.com by [email protected] on 4 Aug 2011 at 8:49

Issue with native app_name

If your android device's native lang is set to Russian and you didn't add 
res/values-ru/strings.xml to your project, the app name will be changed to 
"FileDialog" after adding its library to your project. So to fix it simply 
create res/values-ru/strings.xml and add your app_name string to it.

P.S. im using Flash Builder 4.7 (maybe it's just a compile side issue)

Original issue reported on code.google.com by [email protected] on 11 Feb 2014 at 10:12

Can't include dialog to my project

Sorry, if it's already described somewhere, but I can't find any information 
about how to include your dialog in my app or notify user ti install it from 
Google play. When I simply include activities files from source, there are many 
errors with R class, which unique for any application. What is the right way to 
include dialog in my application or add it as dependency at the installation 
phase?

Original issue reported on code.google.com by [email protected] on 24 Oct 2012 at 9:34

Converting to string: TypedValue.....

What steps will reproduce the problem?
1. add the dialog in my app.
2. switch to the dialog activity, logcat will show warning like "Converting to 
string: TypedValue{t=0x12/d=0x0 a=2"

What is the expected output? What do you see instead?
I have tried and have fixed it ,please replace [android:text="@+id/fdrowtext"] 
with [android:text=""] in the file_dialog_row.xml. :-)

Original issue reported on code.google.com by [email protected] on 2 Apr 2013 at 5:47

Result Path

Do I need to call onActivityResult in order to get the file path that's 
returned?

Or do I need to getExtra() and pull it out of the activity?

I need to use the file path later on and I can't seem to find it.

Original issue reported on code.google.com by [email protected] on 2 Sep 2013 at 8:02

How to integrate into existing app?

This looks like exactly what I am looking for, how do I incorporate this into 
my existing android application?

I am guessing I just copy all these files ontop of my existing project and just 
assume there are no file collisions?

Original issue reported on code.google.com by [email protected] on 27 Feb 2012 at 3:02

Email deleted from server

What steps will reproduce the problem?
1. Delete any email from the android Email app and it dissapears from the mail 
server.
2.
3.

What is the expected output? What do you see instead?

On all previous versions, there was an option to leave mail on server and it's 
not there anymore!!!


What version of the product are you using? On what operating system?
Galaxy S II Skyrocket 2.3.6 andriod version.

Please provide any additional information below.

This was a huge mistake to remove this feature!! I sync 12 emails through this 
app. Since I get many large files with attachments from some of these emails I 
routinely delete these emails from my phone for space concerns. However this 
does not mean I never want to see these again!! You should put a patch that 
give the user the option to keep messages on server just like every previous 
version of android email did before this one!!!!! Your extremely poor choice to 
remove this feature nearly cost me a bunch of money since I deleted an email 
that had a contract document attached!!!!!

Original issue reported on code.google.com by [email protected] on 28 May 2012 at 11:11

rotate the screen, the loacation come back to START_PATH

What steps will reproduce the problem?
1. open the filedialog with the START_PATH: /
2. select a directory, such as /etc
3. rotate the screen, the loacation come back to START_PATH

What is the expected output? What do you see instead?
The location should keep the same when the screen was rotated.
I see the loaction come back to START_PATH instead.

What version of the product are you using? On what operating system?
I found this problem in android 2.1, 2.2

Please provide any additional information below.
to fix this problem, the onPause method should be overrided.

    @Override
    protected void onPause() {
        String myPathStr = myPath.getText().toString();
        int idx = myPathStr.lastIndexOf(':');
        String currPath = myPathStr.substring(idx + 2);
        getIntent().putExtra(START_PATH, currPath);
        super.onPause();
    }






Original issue reported on code.google.com by [email protected] on 1 Aug 2011 at 12:49

allow "one click select"

This patch allows you to:
- select a file just by selecting it (no need to press "select file")
- hides layoutSelect if used with SelectionMode.MODE_OPEN

To set the option:
chooseFile = new Intent(this.getBaseContext(), FileDialog.class);
chooseFile.putExtra(FileDialog.OPTION_ONE_CLICK_SELECT, true);
// Optional but it hides the layoutSelect panel.
chooseFile.putExtra(FileDialog.SELECTION_MODE, SelectionMode.MODE_OPEN);

Original issue reported on code.google.com by [email protected] on 10 Feb 2012 at 3:22

Attachments:

File extension filter and Directory selection

I have implemented these funcionalities.
You can pass a parameter to the activity to make it show only files whose 
extension matches a list of extensions.
Also you can select a directory.

Im sorry for portuguese comments I left in the code.. Feel free to remove it.

I have edited the code in Linux, Im sorry for any encoding issue.

Thanks man!

Original issue reported on code.google.com by [email protected] on 19 Oct 2011 at 4:19

Attachments:

Issue with FileDialog Intent

Hi, I am developing an emulator for Android and decided to make use of 
android-file-dialog for my load and save options. I have a button with an event 
which creates the intent and starts the activity. This works the first time but 
hangs on the second attempt. I followed the directions in the "How to integrate 
into existing app?" issue and the only other thing I had to do was declare the 
activity in my manifest file. Is there anything else I have to do or does 
anyone have any idea why it would hang? Thank you.

Original issue reported on code.google.com by [email protected] on 28 Jun 2012 at 1:54

Cannot build with ant and netbeans due to lack of build.xml

Trying to build my project from the commandline with ant, get the following 
result:

E:\Documents\Java\android\proj>ant debug
Buildfile: E:\Documents\Java\android\proj\build.xml

-set-mode-check:

-set-debug-files:

-set-debug-mode:

-debug-obfuscation-check:

-setup:
     [echo] Gathering info for androsm...
    [setup] Android SDK Tools Revision 15
    [setup] Project Target: Android 2.2
    [setup] API level: 8
    [setup]
    [setup] ------------------
    [setup] Resolving library dependencies:
    [setup] E:\Documents\Java\android\proj: ../android-file-dialog/FileExplorer => E:\Documents\Java\android\android-
file-dialog\FileExplorer
    [setup] ------------------
    [setup] Ordered libraries:
    [setup] E:\Documents\Java\android\android-file-dialog\FileExplorer
    [setup] ------------------
    [setup]

-build-setup:
     [echo] Building Libraries

BUILD FAILED
D:\ProgramsDevices\android-sdk-windows\tools\ant\build.xml:466: Invalid file: 
E:\Documents\Java\android\android-file-dialog\FileExplorer\build.xml

Total time: 1 second
_________________
It seems build.xml is required but is not found in library project.

Original issue reported on code.google.com by [email protected] on 12 Mar 2012 at 8:06

File dialog crashes with NullPointerException

File dialog crashes with NullPointerException if dirPath does not exists.

03-10 18:15:17.289: ERROR/AndroidRuntime(1438): Caused by: 
java.lang.NullPointerException
03-10 18:15:17.289: ERROR/AndroidRuntime(1438):     at 
com.loudsoft.loudbook.FileDialog.getDirImpl(FileDialog.java:177)
03-10 18:15:17.289: ERROR/AndroidRuntime(1438):     at 
com.loudsoft.loudbook.FileDialog.getDir(FileDialog.java:137)
03-10 18:15:17.289: ERROR/AndroidRuntime(1438):     at 
com.loudsoft.loudbook.FileDialog.onCreate(FileDialog.java:125)
03-10 18:15:17.289: ERROR/AndroidRuntime(1438):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-10 18:15:17.289: ERROR/AndroidRuntime(1438):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)

I offer this solution:

    private void getDirImpl(String dirPath) {

        File f = new File(dirPath);
                // Use root directory if dirPath does not exists
        if(!f.exists())
        {
            Toast.makeText(context, "There is no such directory " + dirPath, duration).show();
            dirPath = root;
            f = new File(root);
        }

        myPath.setText(getText(R.string.location) + ": " + dirPath);
        currentPath = dirPath;

        item = new ArrayList<String>();
        path = new ArrayList<String>();
        mList = new ArrayList<HashMap<String, Object>>();

        File[] files = f.listFiles();

Такие дела =)

Original issue reported on code.google.com by [email protected] on 10 Mar 2011 at 3:31

Show current path in titlebar

I've created a patch which uses the option "OPTION_CURRENT_PATH_IN_TITLEBAR", 
which allows you to hide the "myPath" view and use the activity titlebar 
instead.

usage:

chooseFile = new Intent(this.getBaseContext(), FileDialog.class);
chooseFile.putExtra(FileDialog.OPTION_CURRENT_PATH_IN_TITLEBAR, true);
startActivityForResult(chooseFile, ACTIVITY_CHOOSE_FILE);

Original issue reported on code.google.com by [email protected] on 10 Feb 2012 at 8:36

Attachments:

Subversion Checkout URL Does Not Exist

What steps will reproduce the problem?
1. Try to check out the url. There's a space in it, but removing the space does 
not help. 

What is the expected output? What do you see instead?
Expected to get the files, instead got a not-found error.


What version of the product are you using? On what operating system?
Win64 or CentOS 5

Please provide any additional information below.
The correct URL is 
http://android-file-dialog.googlecode.com/svn/trunk/FileExplorer

Original issue reported on code.google.com by [email protected] on 12 Aug 2012 at 3:20

Padding for files list

I've increased some padding around the file and folder items so they don't look 
as squashed.

The padding size has also been changed to use "sp" rather than "dp", as SP is 
scaled depending on the screen density/size and also the user settings (ie. 
font size "bigger", etc)

Original issue reported on code.google.com by [email protected] on 10 Feb 2012 at 8:31

filenames "false"

When I call this dialog, I can see the 'location' path on the top of the screen 
but all files are shown as "false". What am I doing wrong? Thanks!

Original issue reported on code.google.com by [email protected] on 27 Sep 2011 at 8:22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.