현재 구글픽폰(7.0)으로 작업을 하고 있습니다.
기존 롤리팝(5.1)에서 잘 사용했던 코드들이 안되서 새로 만들고 있는데
폴더를 생성 후 미디어 스캐닝을 하는데 핸드폰탐색기에서는 디렉토리로 뜨는데,
PC와 연결하면 파일로 잡혀서 폴더를 사용할 수가 없네요..
같은 증상 겪으신분 계신가요?
난감하네요..;; 구글링해도 스캐닝만 엄청 나오고 같은 증상인걸 못찾겠네요ㅠㅠ
코드랑 PC와 연결했을때 사진입니다.
mGVRContext.getcontext 부분은 VR관련 SDK를 사용중이라 context를 받으려면 아래처럼 사용해야지만 가능합니다.

private void CreateFolder(){
String rootpath = Environment.getExternalStorageDirectory().getAbsolutePath()+"/Video/";
String normalpath = Environment.getExternalStorageDirectory().getAbsolutePath()+"/a/";
String path180 = Environment.getExternalStorageDirectory().getAbsolutePath()+"/b/";
String path360 = Environment.getExternalStorageDirectory().getAbsolutePath()+"/c/";
File file = null;
file = new File(rootpath);
if (!file.exists()){
file.mkdir();
}
file = new File(normalpath);
if (!file.exists()){
file.mkdir();
}
file = new File(path180);
if (!file.exists()){
file.mkdir();
}
file = new File(path360);
if (!file.exists()){
file.mkdir();
}
MediaScannerConnection.scanFile(mGVRContext.getContext(), new String[]{rootpath, normalpath, path180, path360}, null, null);
}