[android-developers] Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag

2012-11-18 Thread Francisco Marzoa
Hi, I am getting many reports of crashes with this error condition: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? The problem is that the reported stack does not made

[android-developers] Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

2010-09-21 Thread mani
Hi all, I tried to create a edittextbox, and button next to it, in the status bar. !! I created it and tried to launch the browser activity, when somebody enters a URL in the textbox click that button. I get runtime exception as below.Can anyone please help what is the issue with this

Re: [android-developers] Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag ?

2010-09-21 Thread A N K ! T
have u try to put this line after defining intent. browserIntent .setFlag(Intent.FLAG_ACTIVITY_NEW_TASK); On Tue, Sep 21, 2010 at 4:39 PM, mani smanikanda...@gmail.com wrote: Hi all, I tried to create a edittextbox, and button next to it, in the status bar. !! I created it and tried to