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 reference to any line on my own code:

0 android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
1 at android.app.ContextImpl.startActivity(ContextImpl.java:618)
2 at android.content.ContextWrapper.startActivity(ContextWrapper.java:258)
3 at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:236)
4 at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:331)
5 at android.os.Handler.dispatchMessage(Handler.java:99)
6 at android.os.Looper.loop(Looper.java:123)
7 at android.app.ActivityThread.main(ActivityThread.java:3652)
8 at java.lang.reflect.Method.invokeNative(Native Method)
9 at java.lang.reflect.Method.invoke(Method.java:507)
10 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
12 at dalvik.system.NativeStart.main(Native Method)

So I am having real troubles to find the source of the problem.

Does anyone have any idea on what methods called from my code may raise these kind of errors?

TIA

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to