How to call An activity class from a service class

前端 未结 1 1215
情歌与酒
情歌与酒 2021-01-15 06:14

In my app there is a service class and need to call an activity class from that service class,but it each time while calling the activity class its show me a message that a

相关标签:
1条回答
  • 2021-01-15 06:39

    Give in.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); before starting the intent.

    0 讨论(0)
提交回复
热议问题