android studio 25

[안드로이드] 클로바 보이스api 레트로핏으로 쉽게 tts어플만들기

https://console.ncloud.com/naver-service/application 안드로이드 패키지 이름 등록후 카드등록만 되어있으면 api key발급 완료 인증정보를 확인해보면 클라이언트id와 클라이언트 시크릿키가 발급됨 기본세팅 레트로핏으로 rest api를 활용할꺼기 때문에 레트로핏 기본세팅 매니페스트 gradle 모듈 implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation("com.squareup.okhttp3:logging-interceptor:4.9.0") 네이버 클로바 세팅 https://api.nclo..

android studio 2023.04.03

안드로이드 스튜디오 카카오 로그인 구현

https://developers.kakao.com/console/app/873668/config/platform 카카오계정 accounts.kakao.com 2) 동의항목 설정 내 애플리케이션 > 제품 설정 > 카카오 로그인 > 동의항목 카카오 로그인 구현 시에 카카오 서비스에 등록할 사용자의 정보를 가지고 올 수 있습니다. ex) 프로필 정보, 성별, 이메일 이번 경우엔 프로필 정보를 필수동의, 이메일을 선택동의로 설정하겠습니다. * 이메일은 비즈 앱인 경우에만 필수 동의가 가능합니다. 플랫폼 등록 oncreate에서 Log.d("getKeyHash", "" + getKeyHash(MainActivity.this)); 함수만들어주기 public static String getKeyHash(final ..

android studio 2023.03.24

[android] 안드로이드 스튜디오 카메라/갤러리 처리하기

버튼을 누르면 바로 알러트 다이얼로그 띄우는 함수만들기 // 알러트 다이얼로그 띄우는 함수 void showDialog(){ AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); builder.setTitle(R.string.alert_title); builder.setItems(R.array.alert_photo, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { if (i == 0){ // todo : 사진찍는 코드 실행 camera(); } else if (i == 1){ ..

android studio 2023.02.13

[android] Intent ACTION_VIEW Uri.parse 외부 액티비티 띄우기

void selectContact(){ Intent intent = new Intent(Intent.ACTION_PICK); intent.setType(ContactsContract.Contacts.CONTENT_TYPE); startActivity(intent); } //웹브라우저 실행시키니는 인텐트 void openWebPage(String url){ Uri uri = Uri.parse(url); Intent intent = new Intent(Intent.ACTION_VIEW,uri); startActivity(intent); } // SMS 보내기위한 액티비티 띄우기 void composeSMS(String phone){ Uri uri = Uri.parse(phone); Intent intent ..

android studio 2023.02.07

[android] 이미지 처리를 위한 Glide 라이브러리 사용법

이미지는 데이터베이스에 저장하고 그 URL 주소로(안드로이드,웹브라우저 등 모두) 이미지 다운로드 받을때(네트워크 통해 데이터베이스 왔다갔다 할대)도 스레드로 처리(다운받는동안 다른 작업할수있게) 그 쓰레드 프로그래밍 라이브러리가 바로 glide gradle 에 가서 sync 맞춰주기 이미지뷰 연결해주고 Glide.with(MainActivity.this).load(경로).into(멤버변수);

android studio 2023.02.07

[android] 네트워크 연결을 위한 volley 라이브러리

multi processing(cpu가 여러개의 프로스세스,소트웨어를 동시에 실행) - 소프트웨어 앱 단위!(앱을 동시에 여러개 실행 가능) 이렇게 하면 cpu가 일을 나눠서 처리 Multi Threading 앱하나에서도 여러가지 일을 나눠서 처리 (자막띄우는 ui 재생버튼ui 소리가 나오는 ui 등등) UI Thread는 항상 동작하며 이게 main thread가 된다. Thread프로그램을 라이브러리로 처리 시켜준게 안드로이드에서 네트워크 통신 라이브러리 Volley Retrofit2 https://google.github.io/volley/ Volley overview Volley overview Volley is an HTTP library that makes networking for Andro..

android studio 2023.02.03