How to call An activity class from a service class

前端 未结 1 1222
情歌与酒
情歌与酒 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)
提交回复
热议问题