{"action":"created","issue":{"url":"https://api.github.com/repos/dkim0419/SoundRecorder/issues/50","repository_url":"https://api.github.com/repos/dkim0419/SoundRecorder","labels_url":"https://api.github.com/repos/dkim0419/SoundRecorder/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/dkim0419/SoundRecorder/issues/50/comments","events_url":"https://api.github.com/repos/dkim0419/SoundRecorder/issues/50/events","html_url":"https://github.com/dkim0419/SoundRecorder/issues/50","id":173857323,"number":50,"title":"Files are not shown in MTP unless I restart the device","user":{"login":"turicas","id":186126,"avatar_url":"https://avatars.githubusercontent.com/u/186126?v=3","gravatar_id":"","url":"https://api.github.com/users/turicas","html_url":"https://github.com/turicas","followers_url":"https://api.github.com/users/turicas/followers","following_url":"https://api.github.com/users/turicas/following{/other_user}","gists_url":"https://api.github.com/users/turicas/gists{/gist_id}","starred_url":"https://api.github.com/users/turicas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turicas/subscriptions","organizations_url":"https://api.github.com/users/turicas/orgs","repos_url":"https://api.github.com/users/turicas/repos","events_url":"https://api.github.com/users/turicas/events{/privacy}","received_events_url":"https://api.github.com/users/turicas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-29T19:52:53Z","updated_at":"2016-11-04T18:29:25Z","closed_at":null,"body":"Hello. First of all, thanks for the project! <3\n\nI've recorded some audios but couldn't access them via MTP when plugged using USB to my computer until I reboot the phone.\n\nThere is a [known Android bug](https://code.google.com/p/android/issues/detail?id=38282) 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](http://android.stackexchange.com/questions/46315/not-all-files-are-visible-over-mtp)).\n\nIt 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:\n\n``` java\nMediaScannerConnection.scanFile(this, new String[] { file.getAbsolutePath() }, null, null);\n```\n"},"comment":{"url":"https://api.github.com/repos/dkim0419/SoundRecorder/issues/comments/258512105","html_url":"https://github.com/dkim0419/SoundRecorder/issues/50#issuecomment-258512105","issue_url":"https://api.github.com/repos/dkim0419/SoundRecorder/issues/50","id":258512105,"user":{"login":"turicas","id":186126,"avatar_url":"https://avatars.githubusercontent.com/u/186126?v=3","gravatar_id":"","url":"https://api.github.com/users/turicas","html_url":"https://github.com/turicas","followers_url":"https://api.github.com/users/turicas/followers","following_url":"https://api.github.com/users/turicas/following{/other_user}","gists_url":"https://api.github.com/users/turicas/gists{/gist_id}","starred_url":"https://api.github.com/users/turicas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turicas/subscriptions","organizations_url":"https://api.github.com/users/turicas/orgs","repos_url":"https://api.github.com/users/turicas/repos","events_url":"https://api.github.com/users/turicas/events{/privacy}","received_events_url":"https://api.github.com/users/turicas/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T18:29:25Z","updated_at":"2016-11-04T18:29:25Z","body":"@andrewgaul hmm so what should we do?\r\nIf I move the files using a file manager on Android to the SD card, I can see them on the computer."}}
{"actor":{"display_login":"turicas"}}