I want to check whether an activity just launched or not - so that I can perform (first time startup only actions e.g. attempt to load something and if it fails the first time let the user manually do it)
Currently I am doing this by checking if savedInstanceState == null
on an Activity.onCreate
method.
I am wondering how reliable this is? Is there a better alternative? Will savedInstanceState == null
in any other scenario other than on Activity startup?