반응형
안드로이드 파일 존재 여부 체크
File 의 exists() 메소드를 사용하면 됩니다.
String filePath = "your/file/path";
if(new File(filePath).exists()) {
// 파일 있음
}else{
// 파일이 없음
}
간단하쥬?
728x90
반응형
'Android' 카테고리의 다른 글
| [Android] Calling startActivity() from outside of an Activity 오류 해결하기 (0) | 2020.05.26 |
|---|---|
| [Android] RecyclerView 의 onCreateViewHolder 가 호출되지 않을 때 (2) | 2020.05.26 |
| [Android] Youtube Data API v3 사용하기 (0) | 2020.04.29 |
| youtube Thumbnail 이미지 url (0) | 2020.04.29 |
| [Android] Email 보내기 Email Intent (0) | 2020.04.21 |
댓글