Hello guys i have a really dumb problem i have two classes the first class is where the input value needs to be applied/readed and the second is where is inputed i do not know how to do that please someone help me
This is where it is inputed the value
final EditText getMetters = (EditText) findViewById(R.id.getMettersText);
final TextView errors = (TextView) findViewById(R.id.errorMessage);
Button setAlarm = (Button) findViewById(R.id.setAlarmButton);
setAlarm.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
int getM = Integer.parseInt(getMetters.getText().toString());
if (getM > 3000) {
errors.setText("ERROR");
} else {
errors.setText("ACCEPTED");
}
}
});
And here where needs to be writen
circle = mMap.addCircle(new CircleOptions()
.center(latLng)
.radius(1000) // here needs to apply the value
.strokeColor(Color.RED)
.fillColor(Color.GREEN)
);