0

Maybe my question might seem a bit weird, but I have an activity in which, in one case , I have to move to another activity before it finishes loading the screen. My condition is in the onCreate method, which means when I encounter it, i get a "startActivity called from outside an activity context" error and the app just crashes...
But then, is there an easy way like a flag for the intent to make it work without having the activity context resolved? thanks for any answer

4

1 回答 1

0

我认为在开始活动的 onCreate 方法期间不可能切换到另一个活动。但是为什么在决定是否必须开始其他活动之前不绘制任何 GUI?

于 2010-05-12T09:21:32.720 回答