{"action":"created","issue":{"url":"https://api.github.com/repos/iPaulPro/aFileChooser/issues/54","labels_url":"https://api.github.com/repos/iPaulPro/aFileChooser/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/iPaulPro/aFileChooser/issues/54/comments","events_url":"https://api.github.com/repos/iPaulPro/aFileChooser/issues/54/events","html_url":"https://github.com/iPaulPro/aFileChooser/issues/54","id":44776446,"number":54,"title":"Issue getting path from file located on SD card","user":{"login":"j-roskopf","id":7951665,"avatar_url":"https://avatars.githubusercontent.com/u/7951665?v=3","gravatar_id":"","url":"https://api.github.com/users/j-roskopf","html_url":"https://github.com/j-roskopf","followers_url":"https://api.github.com/users/j-roskopf/followers","following_url":"https://api.github.com/users/j-roskopf/following{/other_user}","gists_url":"https://api.github.com/users/j-roskopf/gists{/gist_id}","starred_url":"https://api.github.com/users/j-roskopf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-roskopf/subscriptions","organizations_url":"https://api.github.com/users/j-roskopf/orgs","repos_url":"https://api.github.com/users/j-roskopf/repos","events_url":"https://api.github.com/users/j-roskopf/events{/privacy}","received_events_url":"https://api.github.com/users/j-roskopf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-03T06:55:51Z","updated_at":"2015-12-29T19:37:45Z","closed_at":null,"body":"When using the aFileChooserExample application, I will select a file located on my SD card, and the resulting toast says \"File Selected: null\". Is there something I have to do to properly retrieve the path from the SD card? "},"comment":{"url":"https://api.github.com/repos/iPaulPro/aFileChooser/issues/comments/167861565","html_url":"https://github.com/iPaulPro/aFileChooser/issues/54#issuecomment-167861565","issue_url":"https://api.github.com/repos/iPaulPro/aFileChooser/issues/54","id":167861565,"user":{"login":"ryanbehr","id":6430905,"avatar_url":"https://avatars.githubusercontent.com/u/6430905?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanbehr","html_url":"https://github.com/ryanbehr","followers_url":"https://api.github.com/users/ryanbehr/followers","following_url":"https://api.github.com/users/ryanbehr/following{/other_user}","gists_url":"https://api.github.com/users/ryanbehr/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanbehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanbehr/subscriptions","organizations_url":"https://api.github.com/users/ryanbehr/orgs","repos_url":"https://api.github.com/users/ryanbehr/repos","events_url":"https://api.github.com/users/ryanbehr/events{/privacy}","received_events_url":"https://api.github.com/users/ryanbehr/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T19:37:45Z","updated_at":"2015-12-29T19:37:45Z","body":"Yes, this is correct. While they restrict, there are still ways to extract the file location from the URI provided by extracting everything after %3A and converting the rest of the URI to a real string (ex: %2F to forward slash). Then you can combine the path with the external SD card path:\r\n\r\n```\r\nMap<String, File> externalLocations = ExternalStorage.getAllStorageLocations();\r\nFile sdCard = externalLocations.get(ExternalStorage.SD_CARD);\r\nFile externalSdCard = externalLocations.get(ExternalStorage.EXTERNAL_SD_CARD);\r\nFile fullPath = new File(externalSdCard.getPath() + fixedPath);\r\n```\r\n\r\nSo, if the path is null, try the alternate method to get the path.\r\n"}}