Context wants FLAG_ACTIVITY_NEW_TASK but I've already set that flag

后端 未结 3 724
粉色の甜心
粉色の甜心 2020-12-07 01:19

I\'ve created a common re-usable class for the company I work for to create some common interface elements.

The class, takes in a single parameter as in the constru

3条回答
  •  不知归路
    2020-12-07 02:07

    Actually your exception mean that you are using Not Activity Context. it could be called from Application context. Check that you are in Activity context since this is not a service

提交回复
热议问题