JAVA/android_studio 2024. 9. 17. 16:47

 

-

https://monee1001.tistory.com/28

 

[Android] 에러 문구 - Version 28 (intended for Android Pie and below) is the last version of the legacy support library, so

build.gradle에서 compile 'com.android.support:design:25.0.1'을 추가했더니 Version 28 (intended for Android Pie and below) is the last version of the legacy support library, so we recommend that you migrate to AndroidX libraries when using Android Q

monee1001.tistory.com

 

posted by cskimair
:
JAVA/android_studio 2024. 9. 17. 16:35

 

>Build Error:  Execution failed for task ':app:compileDebugAidl'. > aidl is missing

 

- https://blog.naver.com/PostView.naver?blogId=mjh9082&logNo=220507952791

 

안드로이드 스튜디오 에러 해결!! (Execution failed for task ':app:compileDebugAidl'. > aidl is missing)

안드로이드 스튜이디오에서 소스는 정상인데.. 디버그 했을때!!  밑과 같은 에러가 난다.  그럼 ...

blog.naver.com

 

- 에러화면:

ChatGPT통해서 생성받은 소스가 컴파일시 에러 날때 수정방법:

 > 아래와 같은 에러가 나옴(Target SDK: 32, material, appcompat 의 버젼이 최신상태라서 오히려 에러가 나옴)

 

- 실제 수정화면: app -> 오른쪽 버튼 , open module settings , 

> Compile Sdk Version: 32로 , Build Tools Version: 지워도 됨(또는 Compile Sdk Version보다 작은 값으로)

 

 

- material:1.5.0, appcompat:1.5.1 버젼으로 설정변경.

 

 

- Taget SDK version=32, Target SDK Version=24( Android 7.0), Min SDK Version=24(Android 7.0)으로 변경해줌.

 

 

 

 

posted by cskimair
:
JAVA/android_studio 2024. 9. 16. 12:12

savedInstanceState 는 화면 구성의 변경이 발생할 때 현재 인스턴스에서 데이터를 저장하고 새 인스턴스에서 다시 불러오기 위해 호출되며, 대표적인 구성의 변경으로는 화면모드(가로모드, 세로모드)의 전환, 입력기기(키보드) 변경, 지역 및 언어의 변경 등이 있습니다.

 

 

시스템의 구성이 변경되었을 때 UI를 유지시키는 옵션 중 하나로 사용되며, 메모리에 저장되어 읽고 쓰여집니다.
위의 표에서 볼 수 있듯 사용자가 활동을 완전히 마쳤을 때 즉, 다시 Activity로 돌아올 이유가 없는 경우엔 savedInstanceState를 호출하지 않습니다.

 

 출처:  https://tekken5953.tistory.com/9

 

[안드로이드] savedInstanceState 는 왜 있는걸까?

안녕하세요. 앱개발을 공부하다 문득 onCreate()의 Parameter로 생성되는 savedInstanceState는 도대체 무슨 역할을 할까? 라는 의문이 들어 찾아보았습니다. 활동 상태 변경 앱의 생명주기(활동 수명주기)

tekken5953.tistory.com

 

posted by cskimair
:
JAVA/android_studio 2024. 9. 16. 11:23

 

 

- https://velog.io/@krrong/Android-ListView-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0

 

[Android] ListView 사용하기

ListView 사용하기

velog.io

-> RecyclerView 

posted by cskimair
:
JAVA/android_studio 2024. 9. 16. 11:19

 

 

private void scrollListViewToBottom() {
        listView.setSelection(adapter.getCount() - 1);
}

 

-

https://stackoverflow.com/questions/46290105/android-listview-scroll-to-bottom

 

Android ListView scroll to bottom

I am developing app with chat and I want my ListView to scroll to bottom when new message been posted by user and when user was at the bottom of the list and there are new messages recieved. I am u...

stackoverflow.com

 

 

-

https://www.google.com/search?q=android+java%2C++listview+automatic+scrolldown&newwindow=1&client=firefox-b-d&sca_esv=d20da4baa90e25a0&sca_upv=1&sxsrf=ADLYWIKOk3VPLcPF-ZMEw-8IV8pv9retOg%3A1726414992625&ei=kADnZsbuJbun2roP89S3iAc&ved=0ahUKEwjG9vqCpcWIAxW7k1YBHXPqDXEQ4dUDCA8&uact=5&oq=android+java%2C++listview+automatic+scrolldown&gs_lp=Egxnd3Mtd2l6LXNlcnAiLGFuZHJvaWQgamF2YSwgIGxpc3R2aWV3IGF1dG9tYXRpYyBzY3JvbGxkb3duMgoQIRigARjDBBgKSK8hUJwNWIggcAF4AZABAJgBsAGgAeMRqgEEMC4xNbgBA8gBAPgBAZgCDKAClQ3CAgoQABiwAxjWBBhHwgIIEAAYgAQYogTCAgQQIRgKmAMA4gMFEgExIECIBgGQBgiSBwQxLjExoAeOQg&sclient=gws-wiz-serp

 

🔎 android java, listview automatic scrolldown: Google 검색

 

www.google.com

 

posted by cskimair
:
JAVA/android_studio 2024. 9. 16. 11:18

https://armful-log.tistory.com/26

 

[안드로이드] ListView, ArrayAdapter 사용하기

안드로이드 개발을 하다보면, 스크롤이 되면서 아이템들을 리스트로 보여줘야할 상황이 있다.이것을 우리는 Adapter를 이용해서 data들을 가져오는 ListView를 사용할 것이다. ArrayAdapter- ArrayList(data)

armful-log.tistory.com

 

 

 

posted by cskimair
: