본문 바로가기 메뉴 바로가기

The world of Parkho

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

The world of Parkho

검색하기 폼
  • 분류 전체보기 (256)
    • Android (43)
      • BroadcastReceiver (5)
      • Database (12)
      • Intent (6)
      • Service (5)
      • Task (15)
      • Troubleshooting (17)
      • UI (58)
    • JAVA (12)
    • Lambda Expressions in Java (0)
    • VCS (1)
    • App Tech (76)
      • P2E (28)
    • Etc (6)
  • 방명록

Activity Result API (1)
Activity Result API

Activity 간 데이터를 주고받을 때 사용했던 startActivityForResult(), onActivityResult() 가 deprecated 되었다. 이번 포스팅에서는 deprecated 된 API 를 대신하여 도입된 registerForActivityResult() 에 대해 알아보자. startActivityForResult - onActivityResult 하단은 전통적인 startActivityForResult(), onActivityResult() 방식이다. 코드만 봐도 알겠지만, 이 방식은 여러 문제점들이 있다. ◼ Tight Coupling (강한 결합) 해당 code 와 logic 을 추상화 시키거나 다른 곳으로 분리 시킬 수 없는 구조이다. (delegate 정도는 가능하겠지만..

Android 2021. 6. 4. 14:39
이전 1 다음
이전 다음
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 임이지의 블로그 - be the miracle!
TAG
  • 안드로이드 서비스
  • Android Service
  • notifyDataSetChanged
  • M2E
  • 앱테크 추천
  • android intent
  • android task
  • Intent
  • android flag activity
  • onContextItemSelected
  • mPANDO
  • p2e
  • task 생성
  • 리워드 어플
  • 무료채굴
  • onCreateContextMenu
  • BroadcastReceiver
  • bindservice
  • StringUtils
  • android activity flag
  • 채굴앱
  • StartService
  • task
  • 리워드앱
  • 무료 채굴
  • RoomDatabase
  • 안드로이드 인텐트
  • registerForContextMenu
  • WEMIX
  • 앱테크
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바