Android30 Android] Fragment 생성시에는 newInstance로. All subclasses of Fragment must include a public no-argument constructor. The framework will often re-instantiate a fragment class when needed, in particular during state restore, and needs to be able to find this constructor to instantiate it. If the no-argument constructor is not available, a runtime exception will occur in some cases during state restore. 화면회전이나 화면 재생성으로 인해 Fragment 재생성시 no-a.. 2025. 1. 24. Android] 안드로이드 스튜디오 미사용 코드 제거 미사용 코드, 미사용 리소스 제거하는 방법 Run inspection by name unused resources unused declaration unused importunused symbol 키워드로 결과확인 후 제거 2024. 9. 8. Android] 안드로이드 프로젝트 패키지명 변경하기 1. 프로젝트 보기에서 상단 설정버튼 → Compat Middle Package 체크 해제 변경할 패키지명 우클릭 → Refactory → Rename → DO Refactor를 선택 2.build.gradle에서 applicationId를 변경할 패키지명으로 변경 끝 ~ 2024. 6. 23. Android] 파일 용량 / bitmap 용량 구하기 파일 정보 가져오기 | Android 개발자 | Android Developers 이 페이지는 Cloud Translation API를 통해 번역되었습니다. 파일 정보 가져오기 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. 클라이언트 앱이 콘텐츠 URI가 있 developer.android.com Cursor returnCursor = getContentResolver().query(bitmapUri, null, null, null, null); int sizeIndex = returnCursor.getColumnIndex(OpenableColumns.SIZE); returnCursor.moveToFirst(); long fileSize = returnCursor.getL.. 2024. 3. 22. 이전 1 2 3 4 ··· 8 다음