i have a interface in FirstActivity , i want to send a value with interface to SecondAcitivty , but after implement interface in SecondActivity i get this error :
Cyclic inheritance involving '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
{
    . . . 
}

 
    