You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/09/05 23:14:32 UTC

[jira] [Commented] (CB-7487) Writing a file doesn't show up on android MTP

    [ https://issues.apache.org/jira/browse/CB-7487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14123591#comment-14123591 ] 

ASF GitHub Bot commented on CB-7487:
------------------------------------

GitHub user dpeacock opened a pull request:

    https://github.com/apache/cordova-plugin-file/pull/80

    CB-7487 [Android] Broadcast file write

    This allows MTP USB shares to show the file immediately without reboot/manual refresh using 3rd party app.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dpeacock/cordova-plugin-file master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-file/pull/80.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #80
    
----
commit b9f0cf08144fae254ec0e4a21b8951b1c97c9ac1
Author: David Peacock <da...@gmail.com>
Date:   2014-09-05T21:10:53Z

    CB-7487 [Android] Broadcast file write
    This allows MTP USB shares to show the file immediately without reboot/manual refresh using 3rd party app.

----


> Writing a file doesn't show up on android MTP
> ---------------------------------------------
>
>                 Key: CB-7487
>                 URL: https://issues.apache.org/jira/browse/CB-7487
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin File
>    Affects Versions: 3.4.0
>         Environment: Nexus 5 and Windows 7
>            Reporter: David Peacock
>
> 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
(v6.3.4#6332)