Android

    [Android] Retrofit2를 사용한 API 통신 설정 및 Data 송수신

    [Android] Retrofit2를 사용한 API 통신 설정 및 Data 송수신

    ※ 해당 포스팅은 아래 Rest API를 사용하여 작성하였습니다. Reqres - A hosted REST-API ready to respond to your AJAX requests Native JavaScript If you've already got your own application entities, ie. "products", you can send them in the endpoint URL, like so: var xhr = new XMLHttpRequest(); xhr.open("GET", "https://reqres.in/api/products/3", true); xhr.onload = function(){ conso reqres.in # Retrofit2 설정 및 송수신 Code 작성..

    [Android] Keyboard위에 Edit Text 올리기

    [Android] Keyboard위에 Edit Text 올리기

    ※ 해당 포스팅의 내용은 아래 Setting이 적용된 상태에서 진행되었습니다. Setting#01. [Android] ViewBinding 사용하기 입력창을 키보드위에 위치시키기 샘플코드 # 소스코드 activity_main.xml MainActivity.java package org.keyboard.input; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.Toast; import org.keyboard.input.databinding.Ac..

    [Android] 출력 위치를 확인하는 Custom Log Message 제작

    [Android] 출력 위치를 확인하는 Custom Log Message 제작

    # 소스코드 1) Custom Log Message 제작 프로젝트에 utility라는 패키지를 추가한다. 패키지가 생성되면 LogMsgOutput 클래스 파일을 생성한다. LogMsgOutput 클래스 파일 코드는 아래와 같다. LogMsgOutput.java package org.example.customlog.utility; import android.content.Context; import android.util.Log; public class LogMsgOutput { private static String lineOut() { int level = 4; StackTraceElement[] traces; traces = Thread.currentThread().getStackTrace(); re..