I imported a string from another activity, which i want to change into an int.
Bundle gotBasket = getIntent().getExtras();
Integer.parseInt(gotBasket.getString("lol"));
From what i’ve read, the above code is how to do it. However, i don’t know what “key”, variablename or whatsoever, i will have to use, when using my integer.
For example if i have a TextView, and i want to set it to the value of the integer
I would say
TextView.setText(???????????)
As you can see, i don’t know what to write in that field, would love if someone could tell me.
This should do it.