Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

android.util.AndroidRuntimeException in ContextImpl.startActivity() #16

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

android.util.AndroidRuntimeException: Calling startActivity() from outside of 
an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really 
what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java:674)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:258)
at 
com.googlecode.awsms.android.AccountService$9.onClick(AccountService.java:432)
at 
com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertContro
ller.java:159)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by and...@de-pasquale.name on 23 Feb 2012 at 3:34

@GoogleCodeExporter
Copy link
Author

Original comment by and...@de-pasquale.name on 23 Feb 2012 at 3:35

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant