I have problem when I control Activity UI from service. It doesn't work.
class MainActivity
public void showNotice() {
Log.d("log", "can't connect to server");
tvText.setText(notice);
tvTex.setVisibility(View.VISIBLE);
pbDialog.hide();
}
I call showNotice method in my service:
((MainActivity) mContext).showNotice();
But it only show log "can't connect to server".
tvText doesn't change anything, not change text, not visible. pbDialog does'n hide?
Can i help me resolve it? Many thanks.