Intent scanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); scanIntent.setData(Uri.fromFile(tempFile)); context.sendBroadcast(scanIntent);
간단하게 bitmap을 파일로 저장한 후에 이 위에 소스를 추가해주면 저장하면서 갤러리가 새로고침된다.
Intent scanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); scanIntent.setData(Uri.fromFile(tempFile)); context.sendBroadcast(scanIntent);
간단하게 bitmap을 파일로 저장한 후에 이 위에 소스를 추가해주면 저장하면서 갤러리가 새로고침된다.
댓글
댓글 쓰기