jeudi 7 mai 2015

Pass data using Intent & bundle need to convert to int

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:

enter image description here

Any idea ?

Aucun commentaire:

Enregistrer un commentaire