In this code,
Log.d("MYLOG", "i_confirm in Activity BEFORE = "+Integer.toString(i_confirm)); // LINE 1
theGraph.invalidate();
i_confirm = theGraph.ret_i_confirm(); // LINE 2
the logcat shows the outputs due to the functions in line 1 and line 2 before showing me another logcat message that was inside the onDraw()
function in theGraph
, which extends View
class. The above code is in my MainActivity class, inside a function that gets executed when a command button is pressed.
Is invalidate()
a non blocking method? Does onDraw()
and everything else inside invalidate()
get called alongside the execution of the main program? Or is it possible for the logcat to show log messages out of order?