У меня есть интерфейс в FirstActivity, я хочу отправить значение с интерфейсом в SecondAcitivty, но после реализации интерфейса в SecondActivity я получаю эту ошибку:
Циклическое наследование с участием 'com.example.user.classmanager.AlertDialogShowStudentScore'
FirstActivity:
public class StudentScoreActivity extends AppCompatActivity
{
private updateStudentScore updateStudentScore;
@Override
protected void onCreate(Bundle savedInstanceState)
{
this.updateStudentScore= (updateStudentScore) this;
}
public interface updateStudentScore
{
void updateRangeScore(float score);
}
}
SecondActivity:
public class AlertDialogShowStudentScore implements StudentScoreActivity.updateStudentScore
{
. . .
}
