관리 메뉴

팀드모네 IT Blog

[solved] Must be called on the main UI thread 본문

mobile/Android

[solved] Must be called on the main UI thread

남명 팀드모네 2021. 3. 20. 16:02

Problem

Must be called on the main UI thread

 

Solution

fun btnRewardVideo() {
	runOnUiThread {
		loadRewardedVideoAd()
	}
}

reference : stackoverflow.com/questions/28501787/admob-interstitial-and-error-isloaded-must-be-called-on-the-main-ui-thread

0 Comments
댓글쓰기 폼