File path = new File(fileRoute,"temp");
이게 temp 파일경로 생성인데
예를들면 이미 생성되어있는데 temp 파일 경로를 주려고 합니다.
그럼 File path = 여기를 어떻게 써야되죠??
미디어스캐니을 수행하려고합니다.
private void galleryAddPic(File f) {
Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
Uri contentUri = Uri.fromFile(f);
mediaScanIntent.setData(contentUri);
sendBroadcast(mediaScanIntent);
}
경로를 넣어야 되는데 무슨수를 써도 에러만 뜹니다.. 직접 타이핑해서 하드코딩하는건 좋지 않다고 해서 그렇게 안하려고 하는데 뭔가 제약이 많네요..