I am making a android application not using complicated task but using ui controlling.
But, i saw the log of the android monitor of android studio.
It says something '41 frames below, warning blah blah...'
I want to extract the code from main thread(ui thread) to another thread...
but, the code i wrote was just used ui controll(like
AlertDialog.Builder dialog.... show()
Button button = (Button)findViewById(R.id....)
why people use this ?
it is used when lets assume you have a background task running and you want to update the layout then you call
runonuithread method, since we can only update the layout on Main thread so we use this method.
That is only one use I told to explain a little
Hope it helps.