activity1 [안드로이드] Service에서 Activity의 UI 업데이트하기 Service에서 Activity의 UI 업데이트하기 BroadcastRecevier 활용 Service에서 UI 업데이트를 위한 브로드캐스팅 메시지를 송신한다. Activity에서 BroadcastReceiver를 등록 후 브로드캐스팅 메시지를 분기 처리하여 UI를 업데이트한다. activity_main.xml MyService.kt package org.techtown.test import android.app.Service import android.content.Intent import android.os.IBinder import io.reactivex.rxjava3.core.Observable import io.reactivex.rxjava3.core.ObservableEmitter impor.. 2020. 10. 21. 이전 1 다음