wojciet12 / android-vlc-remote

Automatically exported from code.google.com/p/android-vlc-remote
GNU General Public License v3.0
0 stars 0 forks source link

Typo in BrowseActivity #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Select a File for remote Access on Windows 7 VLC 1.15
2.
3.

What is the expected output? What do you see instead?
VLC Responds with: Can not open File //C:\ ....

What version of VLC Remote are you using?
Own Build, untouched, only compiled

What version of VLC are you using?
1.1.5

What version of Android are you using?
2.2.1

Which Android device are you using?
Archos 70 IT

Please provide any additional information below.
Fix:
private void selectFile(String action, String path) {
        Uri.Builder builder = getIntent().getData().buildUpon();

        // Add the file parameter in addition to the dir parameter
        // OLD: String mrl = "file://" + path;
                String mrl = "file:///" + path;
        builder.appendQueryParameter("mrl", mrl);
        Uri data = builder.build();

        Intent result = new Intent(action, data);
        setResult(RESULT_OK, result);
        finish();
    }

Original issue reported on code.google.com by saschast...@gmail.com on 26 Dec 2010 at 7:50

GoogleCodeExporter commented 8 years ago
Hmm, interesting.  There are two HTTP interfaces, so it's possible that one 
includes the leading slash in the path and the other does not.

Original comment by mr.bald...@gmail.com on 30 Dec 2010 at 7:52

GoogleCodeExporter commented 8 years ago

Original comment by mr.bald...@gmail.com on 2 Jan 2011 at 7:43