You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Marco Scholle (JIRA)" <ji...@apache.org> on 2014/08/19 15:01:20 UTC

[jira] [Updated] (CB-7334) Implement Workaround for Android Iddue 38282 (Android MTP support does not show recent files until the device is rebooted)

     [ https://issues.apache.org/jira/browse/CB-7334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marco Scholle updated CB-7334:
------------------------------

    Description: 
Link to Android Issue:
https://code.google.com/p/android/issues/detail?id=38282

This also applies to cordova, making it impossible to export a file using the file api/plugin and afterwards copying it to a PC using MTP.

A workaround mentioned in the issue is "to add the following code after every file close" (https://code.google.com/p/android/issues/detail?id=38282#c2):
MediaScannerConnection.scanFile(this, new String[] { file.getAbsolutePath() }, null, null);



  was:
Link to Android Issue:
https://code.google.com/p/android/issues/detail?id=38282

This also applies to cordova, making it impossible to export a file using the file api/plugin and afterwards copying it to a PC using MTP.

A workaround mentioned in the issue is "to add the following code after every file close (https://code.google.com/p/android/issues/detail?id=38282#c2):
MediaScannerConnection.scanFile(this, new String[] { file.getAbsolutePath() }, null, null);




> Implement Workaround for Android Iddue 38282 (Android MTP support does not show recent files until the device is rebooted)
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-7334
>                 URL: https://issues.apache.org/jira/browse/CB-7334
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin File
>    Affects Versions: 3.5.0
>         Environment: Any Android Version using MTP
>            Reporter: Marco Scholle
>
> Link to Android Issue:
> https://code.google.com/p/android/issues/detail?id=38282
> This also applies to cordova, making it impossible to export a file using the file api/plugin and afterwards copying it to a PC using MTP.
> A workaround mentioned in the issue is "to add the following code after every file close" (https://code.google.com/p/android/issues/detail?id=38282#c2):
> MediaScannerConnection.scanFile(this, new String[] { file.getAbsolutePath() }, null, null);



--
This message was sent by Atlassian JIRA
(v6.2#6252)