cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-7487) Writing a file doesn't show up on android MTP
Date Wed, 17 Sep 2014 14:36:34 GMT


ASF GitHub Bot commented on CB-7487:

Github user clelland commented on a diff in the pull request:
    --- Diff: src/android/ ---
    @@ -579,6 +582,7 @@ public long writeToFileAtURL(LocalFilesystemURL inputURL, String data,
                 	// Always close the output
    +			broadcastNewFile(inputURL);
    --- End diff --
    Does this happen on every file write? If so, should we try to ensure that it happens only
when new files are created, or does it need to be called every time a file changes?

> Writing a file doesn't show up on android MTP
> ---------------------------------------------
>                 Key: CB-7487
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File
>    Affects Versions: 3.4.0
>         Environment: Nexus 5 and Windows 7
>            Reporter: David Peacock
>            Assignee: Ian Clelland
> Using the file plug-in to write out a file works, but when you use MTP to view the file
when connected to USB on Windows the file doesn't show up.  
> The file shows up on the device or through adb.  Rebooting the device or using things
to refresh the MTP will have the file appear.  This was tested on multiple Nexus 5 devices
on multiple Windows 7 machines.
> Cordova should be broadcasting ACTION_MEDIA_SCANNER_SCAN_FILE on the file to have it
appear immediately.
> I will be submitting a pull request on the file plug-in for a fix I've tested and confirmed
that resolves this issue.

This message was sent by Atlassian JIRA

View raw message