can not hold a valid value while you are still in the
method. It's not yet initialized at that runtime.
has other methods
protected void onResume(); protected void onPause();
That's a better place to interact with the
Please also read in the documentation about these lifecycle controling methods:
] @ Android Documentation