我正在尝试使用overridePendingTransition从服务开始一个意图,它看起来像这样
Intent dialogIntent = new Intent(this, PopUpMainActivity.class);
dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
this.startActivity(dialogIntent);
overridePendingTransition(R.anim.enter_anim, R.anim.exit_anim);
但它显示错误。
The method overridePendingTransition(int, int) is undefined for the type MyServiceForPopUp