【发布时间】:2021-10-22 16:20:35
【问题描述】:
我从下面的一个函数中调用新活动。
我想让 loadRoundFromExercise() ~ updateRound() 方法在从 openRegisterPopupActivity() 调用的新活动完成后启动
我想把 sleep 方法。但我无法估计用户要输入多长时间。
那么.. 我该如何解决这个问题?请帮帮我。
谢谢。
adapter.setRoutineListener(new HealthRoutineViewHolder.Listener() {
@Override
public void onAddItem(ExerciseLog exerciseLog) {
setupLogReference(exerciseLog);
openRegisterPopupActivity(); // I call new activity here by intent.
loadRoundFromExercise();
convertToRoundLog();
updateRound();
}
【问题讨论】:
标签: android function android-intent stack-trace