Android:
public class LocationService extends Service {
@Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
startActivity(new Intent(this, activity.class));
}
}
我从 Activity
在Activity
如果条件满足启动
startService(new Intent(WozzonActivity.this, LocationService.class));
从我LocationService
上面提到的无法启动Activity
,如何获取当前正在Activity
服务类中运行的上下文?