fire an intent from the onCreate method in android

Posted by Sephy on Stack Overflow See other posts from Stack Overflow or by Sephy
Published on 2010-05-12T09:17:36Z Indexed on 2010/05/12 9:24 UTC
Read the original article Hit count: 235

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about intent

Related posts about oncreate