Api

    okhttp+asyncTask

    import android.os.AsyncTask; import android.util.Log; import okhttp3.FormBody; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; /** * Created by */ public class OkHttp extends AsyncTask { @Override protected String doInBackground(String... strings) { //0번째 controller선택 , 1번째 type, 2번째 sendMsg String url="url대입"; OkHttpClient client = new O..

    Google Maps Android Api

    Google Maps Android Api

    수정사항 implementation 'com.google.android.gms:play-services-location:16.0.0' implementation 'com.google.android.gms:play-services-location:16.0.0' 로 변화되었음 https://webnautes.tistory.com/647 ------------------------------------------- Google Maps Android API를 사용하는 기본적인 방법과 사용시 발생할 수 있는 문제점에 대해 다룹니다. 1. 간단한 안드로이드 구글맵 예제 동작시키기 2. Google Maps Android API 예제 코드 설명 3. Google Maps Android API를 사용할 때 발생할 수..

    Okhttp/gson/cloud vision

    implementation 'com.squareup.okhttp3:okhttp:3.14.1' implementation 'com.google.code.gson:gson:2.8.5' gson https://choiyb2.tistory.com/82 okhttp3 https://whereisusb.tistory.com/55 google Cloud vision https://jungwoon.github.io/google%20cloud/2018/01/09/Vision-Api/

    Glide 이미지 로딩

    공식 git site https://github.com/bumptech/glidedependencies { implementation 'com.github.bumptech.glide:glide:4.9.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0' }사용방법-이미지 뷰와 Glide가 gradle 에 설치되어있어야 한다 .-링크를 통해 가져오는 방법이다 .@Override public void onCreate(Bundle savedInstanceState) { ... ImageView imageView = (ImageView) findViewById(R.id.my_image_view); Glide.with(this).load("http:..