I'm trying to pass data to another activity, but after passing it I want to convert it to int is there a way to do that.
This my code:
Intent intent = getIntent();
Bundle bundle = intent.getExtras();
if(bundle != null) {
checker.setText(bundle.getString("temperature"));
String checkerHolder = checker.getText().toString();
int finder = Intent.parseIntent(checkerHolder);
}
The "checkerHolder" is the problem here look at the pic:
Any idea ?
Aucun commentaire:
Enregistrer un commentaire