How to close the activity from the service?

后端 未结 3 1173
旧时难觅i
旧时难觅i 2020-12-05 19:07

I am launching activity from the service based on some value got from the server and the activity will be displayed for the some time and after getting close instruction fro

3条回答
  •  生来不讨喜
    2020-12-05 19:34

    Try to send broadcast using context.

    context.sendBroadcast(new Intent("xyz"));
    

    Answer from Jainal is Working for me.

提交回复
热议问题