2024/06/11 3

[Android Studio] Json 데이터 파싱

안드로이드 스튜디오에서 "parsing(파싱)"은 일반적으로 데이터를 분석하고 필요한 정보를 추출하는 과정을 의미  일반적으로 네트워크 요청을 통해 가져온 데이터를 처리하는 과정으로 구현주로 JSONObject 또는 JSONArray 클래스를 사용하여 JSON 데이터를 파싱 // 1. request queue 를 만든다. RequestQueue queue = Volley.newRequestQueue(MainActivity.this); // 2. request 를 만든다. => 응답 데이터의 JSON 형식을 먼저 확인한다. JsonObjectRequest request = new JsonObjectRequest( // 가져올 방식 ..

Android Studio 2024.06.11

[Android Studio] 안드로이드 네트워크 통신 Volley 라이브러리

공식 홈페이지 =>  https://google.github.io/volley/ Volley overviewVolley overview Volley is an HTTP library that makes networking for Android apps easier and most importantly, faster. Volley is available on GitHub. Volley offers the following benefits: Automatic scheduling of network requests. Multiple concurrent networkgoogle.github.io  build.gradle파일의 dependencies에 아래 코드 입력 dependencies { impleme..

Android Studio 2024.06.11