반응형

Android 32

[Android]ENOENT (No such file or directory) 이미지 경로변경

image파일의 경로 이상. image파일의 경로의 log를 찍어보면 /content/— 형식으로 나오는데, /storage/emulated/0/Pictures/KakaoTalk/1664328418019.png 이러한 형식으로 변형해주어야 합니다. publicString getPathFromUri(Uri uri){ Cursorcursor = getContentResolver().query(uri,null,null,null,null); cursor.moveToNext(); String path = cursor.getString( cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA)); cursor.close(); return path; } 위 메소드를 통..

- 삽질방지 2023.01.30

안드로이드 신입개발자 면접질문(비전공) + TIP

안녕하세요, 신입으로 면접을 보러 다닐때 받았던 질문들을 정리해서 올려 드리려고 합니다. 참고로 저는 비전공 + 국비지원교육을 통해 취업준비를 한 케이스 입니다. 추후 국비지원교육에 대한 내용도 한번 다루어 보도록 하겠습니다. 차량관련(Android Auto) 안드로이드 개발 기업 ANI가 무엇인지 알고있는지? AUTOSA 들어봤는지? 비전공자이고 JAVA를 처음 접했는데, 어땠는지? 객체지향 언어의 특징? android 실행 절차? 절차지향언어가 무엇인지? 내학과는 어떤 학과이고, 학과에서 무엇을 배우는지? QT플랫폼 들어봤는지? JVM이 무엇이고 장 단점은? 메소드 오버로딩, 오버라이딩에 대한 설명? 자사 서비스 개발 및 솔루션 기업 비전공자인데 프로그래밍을 선택한 특별한 이유가 있는지? 메소드 오버..

- 후기 2023.01.29

[Android] 새로고침 구현 - swipe refresh

swipe refresh 데이터를 받아오는 작업을 하거나, 새로고침이 필요한 경우 해당 라이브러리를 사용하여 간단한게 구현할 수 있습니다. build.gradle // swipe refresh implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" xml // 내용 새로고침을 구현할 부분을 SwipeRefreshLayout으로 감싸 줍니다. Activity SwipeRefreshLayout swipeRefreshLayout; ... // 새로고침 swipeRefreshLayout = findViewById(R.id.swiperefreshlayout); swipeRefreshLayout.setOnRefreshListener(new Swi..

- Android 2023.01.29

[Android] lottie 라이브러리를 사용하여 애니메이션 구현

lottie lottie 애니메이션은 카테고리 옆 이미지, 로딩 다이얼로그 등 화면을 보다 동적으로 보여주기에 목적에 따라 다양하게 활용 될 수 있습니다. build.gradle // lottie implementation 'com.airbnb.android:lottie:5.0.2' raw 파일 생성 res 우클릭 - New - Android Resource Directory lottie 홈페이지 https://lottiefiles.com/ LottieFiles: Download Free lightweight animations for website & apps. Effortlessly bring the smallest, free, ready-to-use motion graphics for the web..

- Android 2023.01.29

[Android] Retrofit2 라이브러리를 사용하여 서버와 통신하기

Retrofit2 라이브러리를 사용하여 서버와 데이터를 주고 받는 작업을 진행하겠습니다. Retrofit2 Retrofit2 은 서버와의 RestAPI 통신을 가능하게 도와주는 라이브러리 입니다. retrofit 외에 통신을 가능하게 하는 라이브러리가 있지만, 속도 뿐만 아니라 많은 장점을 보유하고 있기에 Retrofit을 많이 선호 한다고 합니다. build.gradle // retrofit2 implementation 'com.squareup.retrofit2:retrofit:2.9.0' // Gson 변환기 implementation 'com.squareup.retrofit2:converter-gson:2.9.0' retrofit, gson 라이브러리를 추가해 줍니다. ApiClient.java 클..

- Android 2023.01.29