There is such a construction
int parse_txtw = Integer.parseInt(getString(R.string.value)); view.setText(String.valueOf(Integer.parseInt(spinervalue)*parse_txtw)); Then, when I try to call a value from another class using view.getText().toString() , the original, not the actual value from the R.string is called, but a new one is needed, depending on the set value in the spiner and its multiplication.
I will reformulate the question and describe it in another way. there is a textview, I assign it a value in the markup android:text="0" by default, before the arithmetic operations, then the code picks up the default string resource <string name="textview222">77</string> , does the operation, and let's say in the amount comes out 100 and is set to the same textview, and instead of 0, it is assigned 100, which is logical and works as it should, but until I want to pull these 100 out of another class using getText (). toString (), instead of 100, 0 is pulled out, original meaning.
Here is a piece where there is an appeal
ArrayList<HashMap<String, String>> myArrList = new ArrayList<HashMap<String, String>>(); HashMap<String, String> map; map = new HashMap<String, String>(); map.put("key", txtwiew.getText().toString()); myArrList.add(map);