android start activity from service

后端 未结 7 1072
傲寒
傲寒 2020-11-22 03:04

Android:

public class LocationService extends Service {

@Override
    public void onStart(Intent intent, int startId) {
        super.onStart(intent, startI         


        
7条回答
  •  梦毁少年i
    2020-11-22 03:29

    If you need to recal an Activity that is in bacgrounde, from your service, I suggest the following link. Intent.FLAG_ACTIVITY_NEW_TASK is not the solution.

    https://stackoverflow.com/a/8759867/1127429

提交回复
热议问题