Skip to content

Files are not shown in MTP unless I restart the device #50

Description

@turicas

Hello. First of all, thanks for the project! <3

I've recorded some audios but couldn't access them via MTP when plugged using USB to my computer until I reboot the phone.

There is a known Android bug related to exposing some files to MTP: depending on the way the app creates the file, it will appear via MTP only when the device is restarted (there are also other tricks you can do to solve the problem, check this thread).

It seems the bug was not fixed but there is a comment on the Android bug on Google Code saying that you can add the following code to fix the problem:

MediaScannerConnection.scanFile(this, new String[] { file.getAbsolutePath() }, null, null);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions