AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Collectionista |
Fix Committed
|
Medium
|
pjv |
Bug Description
Bugsense:
https:/
https:/
android.
at android.
at android.
at android.
at android.
at android.
at android.
at android.
at java.lang.
at java.lang.
at com.android.
at com.android.
at dalvik.
Somewhere (trace doesn't say where), I am calling mContext.
Related branches
Changed in collectionista: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
assignee: | nobody → pjv (pjv) |
importance: | Low → Medium |
To fix, I have made the Context type more specific as Activity everywhere necessary. I also used FLAG_ACTIVITY_ NEW_TASK in one place, Preferences, to avoid the possibility of this error. In CustomActionPro vider I now have 2 context objects (one needs to be themed).